Re: Apache virtualhost order deny, allow works only on localhost; ignores public IP for allow

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Its not file permissions - 
So, I tried the suggestion. Now, in addition to access denied from the public IP, access is also denied on the localhost (I tried the alias and a physical path). 
AND the site with a FQDN got redirected to the default Apache site (/var/www). I was not expecting the currently working vhost to get broken like that. I changed things back as per the start of my post but, I guess this means something is very wrong with how the vhosts are setup. Some sort of namespace confusion by Apache?


On Fri, Jun 21, 2013 at 8:42 PM, Igor Cicimov <icicimov@xxxxxxxxx> wrote:


> <VirtualHost *:80>
>     ServerName test
>     ServerAlias test
>     DocumentRoot /home/user3/public_html/test
>     <IfModule mod_fcgid.c>
>         SuexecUserGroup test test
>         <Directory /home/user3/public_html/test>
>             Order Deny,Allow
>             Deny from all
>             Allow from xxx.xxx.xxx.xxx 127
>
Assuming its not the file permission have you tried

Order Allow,Deny
Allow from xxx.xxx.xxx.xxx 127
Deny from all

?





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux