Apache Server configuration support - Virtual Host problem

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > August 2004 > Virtual Host problem





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Virtual Host problem
Ken

2004-08-15, 5:53 pm

I am trying to host 2 name based virtual host web sites.
www.waywegos.com and www.synchronizer.org
when I enter the names in my web browser all I get is the test page.
Yes I am a newbie so be kind.

I added this to the httpd.conf file:

NameVirtualHost *:80

<VirtualHost *:80>
ServerAdmin ridgerunner@earthlink.net
DocumentRoot "/home/httpd/html/www/waywegos"
ServerName waywegos.com
</VirtualHost>

<VirtualHost *:80>
ServerAdmin ridgerunner@earthlink.net
DocumentRoot "/home/httpd/html/www/synchronizer"
ServerName synchronizer.org
</VirtualHost>




I use the command "/usr/sbin/httpd -S" and this is what I get:

> /usr/sbin/httpd -S

httpd: Could not determine the server's fully qualified domain name,
using 127.0.0.1 for ServerName
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
_default_:443 127.0.0.1 (/etc/httpd/conf.d/ssl.conf:88)
*:80 is a NameVirtualHost
default server waywegos.com (/etc/httpd/conf/httpd.conf:1075)
port 80 namevhost waywegos.com
(/etc/httpd/conf/httpd.conf:1075)
port 80 namevhost synchronizer.org
(/etc/httpd/conf/httpd.conf:1081)
Syntax OK

Ken

2004-08-15, 5:53 pm

On Sun, 15 Aug 2004 07:31:40 -0700, Ken <not@not.com> wrote:

>I am trying to host 2 name based virtual host web sites.
>www.waywegos.com and www.synchronizer.org
>when I enter the names in my web browser all I get is the test page.
>Yes I am a newbie so be kind.
>
>I added this to the httpd.conf file:
>
>NameVirtualHost *:80
>
><VirtualHost *:80>
> ServerAdmin ridgerunner@earthlink.net
> DocumentRoot "/home/httpd/html/www/waywegos"
> ServerName waywegos.com
></VirtualHost>
>
><VirtualHost *:80>
> ServerAdmin ridgerunner@earthlink.net
> DocumentRoot "/home/httpd/html/www/synchronizer"
> ServerName synchronizer.org
></VirtualHost>
>
>
>
>
>I use the command "/usr/sbin/httpd -S" and this is what I get:
>
>httpd: Could not determine the server's fully qualified domain name,
>using 127.0.0.1 for ServerName
>VirtualHost configuration:
>wildcard NameVirtualHosts and _default_ servers:
>_default_:443 127.0.0.1 (/etc/httpd/conf.d/ssl.conf:88)
>*:80 is a NameVirtualHost
> default server waywegos.com (/etc/httpd/conf/httpd.conf:1075)
> port 80 namevhost waywegos.com
>(/etc/httpd/conf/httpd.conf:1075)
> port 80 namevhost synchronizer.org
>(/etc/httpd/conf/httpd.conf:1081)
>Syntax OK



I changed the file extension on my index file in the waywegos
directory to .html from htm. Now I get the waywegos website but when I
enter synchronizer.org I get the waywegos site? not sure what I am
doing wrong? I do see when I enter "/usr/sbin/httpd -S" it says :
"default server waywegos.com (/etc/httpd/conf/httpd.conf:1075)" I know
this is one of the problems, but how do I change this?




Thanks for any help!!!
Ken
Harrie

2004-08-17, 5:57 pm

Ken said the following on 15/08/2004 17:41:

> On Sun, 15 Aug 2004 08:23:14 -0700, Ken <not@not.com> wrote:
>

You can set default extention(s) with DirectoryIndex. It's probably set
to html in your configuration.

http://httpd.apache.org/docs/mod/mod_dir.html
[vbcol=seagreen]
> OK something else is strange! when I enter synchronizer.org without
> the www in front of it I get the right page. HOW DO YOU FIX THAT??


Change your ServerName to www.synchronizer.org and make sure it can be
resolved by a hosts file and/or DNS entry.

--
Regards
Harrie
Ken

2004-08-22, 6:24 pm

On Sun, 15 Aug 2004 08:23:14 -0700, Ken <not@not.com> wrote:

>On Sun, 15 Aug 2004 07:31:40 -0700, Ken <not@not.com> wrote:
>
>
>
>I changed the file extension on my index file in the waywegos
>directory to .html from htm. Now I get the waywegos website but when I
>enter synchronizer.org I get the waywegos site? not sure what I am
>doing wrong? I do see when I enter "/usr/sbin/httpd -S" it says :
>"default server waywegos.com (/etc/httpd/conf/httpd.conf:1075)" I know
>this is one of the problems, but how do I change this?
>
>
>
>
>Thanks for any help!!!
>Ken


OK something else is strange! when I enter synchronizer.org without
the www in front of it I get the right page. HOW DO YOU FIX THAT??
heheheeheheheeheheheh.

their comming to take me away to the funny farm.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com