Apache Virtual Host Issue
Hello All,
I have a small dedicated server at home which runs Apache/2.2.22 on Fedora Linux 16 with Webmin. I have setup 3 Virtual Hosts using Webmin, which produces the following configuration in /etc/httpd/conf/httpd.conf Code:
<VirtualHost *:80> Thanks, Pete |
Hi,
What is the output of: Code:
apachectl -S |
Here is the response to that command:
Quote:
Pete |
From the output looks like your vhosts are ok.
Quote:
|
I double checked the host name, and verified that domain3.sytes.net does resolve to the correct IP and makes it as far as my server. So the problem must be on my server! I just don't see it somehow. :(
Pete |
no-ip is good
a wilde guess is that your issue is on that side recheck your no-ip.com set up now on the other hand with all three on port 80 ????? that could cause some " fun" putting the third on 8080 might do it |
Quote:
BTW to get rid of: Quote:
|
Quote:
Quote:
Quote:
By the way, the Default Server has the following configuration: Address: Any Port: Any Server Name: Automatic Document Root: /var/www/html Would that effect the settings for domain3 in any way? Thanks, Pete |
Re-check port listen in httpd.conf
Code:
Listen 80 Code:
NameVirtualHost *:80 Code:
NameVirtualHost *:80 |
Quote:
What happens if you manually move the 3rd vhost stanza before the 1st one in httpd.conf, so it becomes the default vhost? |
1 Attachment(s)
Quote:
Code:
[Sun Dec 23 14:23:52 2012] [warn] _default_ VirtualHost overlap on port 80, the first has precedence Quote:
I am posting my complete httpd.conf file here as an attachment in hope that someone can point out what the actual problem may be. Attachment 11458 Thanks, Pete |
I'm baffled. Your config looks ok, so I cannot tell what the problem really is.
I still suspect some typo in the vhost definition, as the hostname resolves correctly to your apache IP, but apache does not know that vhost name, so it gives the default server. Have you tried to use both domain3.sytes.net and www.domain3.sytes.net? Also try to use telnet and see what you get: Code:
telnet x.x.x.x 80 |
Quote:
I tried and telnet to the server from another machine and still got the html of the apache test page. :( Pete |
Quote:
Code:
nslookup www.domain3.sytes.net Quote:
|
Quote:
Quote:
Quote:
Pete |
FINALLY, I figured out what the issue is. I was thinking the problem may be permission related. A quick listing of the directory showed this:
Code:
drwxr-xr-x. 8 root root 4096 Dec 24 13:02 . Code:
sudo chmod -R a+rX domain3.sytes.net Thanks, Pete |
All times are GMT -5. The time now is 01:13 PM. |