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]

 



Are you only trying to open PHP files or do you get the same issue with CSS and image files?


On Tue, Jun 25, 2013 at 10:30 AM, Kirk Woellert <kdwoell@xxxxxxxxx> wrote:
Hi, I looked at output of a "# httpd -S" command too- didn't see an obvious problem but here it is (pardon all the redaction):
------------------
[root@[myhostname mysuperuser]# httpd -S
[Tue Jun 25 10:06:18 2013] [warn] NameVirtualHost *:443 has no VirtualHosts
VirtualHost configuration:
[Assigned Public IP Redacted]:443      www.[redacted] (/etc/httpd/conf.d/ssl.conf:78)
wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
         default server localhost (/etc/httpd/conf/httpd.conf:1074)
         port 80 namevhost localhost (/etc/httpd/conf/httpd.conf:1074)
                 alias localhost
         port 80 namevhost www.[redacted] (/etc/httpd/conf/httpd.conf:1080)
                 alias [redacted]
         port 80 namevhost [redacted] (/etc/httpd/conf/httpd.conf:1103)
                 alias [redacted]
Syntax OK
---------------------

To summarize, the default Apache localhost website works, the vhost for a live website works, but I cannot get the third vhost for a site under development to be accessible from the Internet- only on the localhost. I cranked up the Apache log level this morning to "debug" and confirmed the SuExec wrapper script is instantiated for the user associated with the third vhost. So its not SuExec. I double checked permissions/ownership, again. So it does not appear to be that. Again, this morning I changed the Order, Allow,Deny directives to "Allow all". Still no access from the Internet. Third vhost only works when I enter its alias in a browser on the server console.

As a reminder- I don't have a FQDN for the third vhost site- so I just made a /etc/host temporary entry as mentioned earlier in my post. Therefore when I try to check for public access, I'm always using a physical path in the browser as:

http://[redacted public IP]/~[redacted user for 3rd vhost]/[redacted site directory for 3rd vhost]/index.php

"as well as a invocation of e.g. wget
demonstrating the problem."

I don't follow what you mean by reference to wget- a unix file transfer utility...

-Kirk Woellert


On Tue, Jun 25, 2013 at 9:04 AM, Eric Covener <covener@xxxxxxxxx> wrote:
On Tue, Jun 25, 2013 at 8:39 AM, Kirk Woellert <kdwoell@xxxxxxxxx> wrote:
> Update: Still have the same basic problem, I can access the vhost2 from the
> Internet, but can only access vhost3 from the localhost- not from the
> Internet. The behavior in my reply was not repeatable. I tried to completely
> open up access to the vhost3 site by:

pastebin your apachectl -S output as well as a invocation of e.g. wget
demonstrating the problem.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx







--
Take Care,

David Guerra
http://frustratedtech.com/

[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