Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Virtual Host problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache vhost look up into a mysql table  
Author Message
not21

External


Since: Aug 15, 2004
Posts: 3



(Msg. 1) Posted: Sun Aug 15, 2004 10:31 am
Post subject: Virtual Host problem
Archived from groups: alt>apache>configuration (more info?)

I am trying to host 2 name based virtual host web sites.
<a style='text-decoration: underline;' href="http://www.waywegos.com" target="_blank">www.waywegos.com</a> and <a style='text-decoration: underline;' href="http://www.synchronizer.org" target="_blank">www.synchronizer.org</a>
when I enter the names in my web browser all I get is the test page.
Yes I am a newbie so be kind. Smile

I added this to the httpd.conf file:

NameVirtualHost *:80

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

<VirtualHost *:80>
ServerAdmin ridgerunner DeleteThis @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:8Cool
*: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<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Virtual Host problem 
Back to top
Login to vote
not21

External


Since: Aug 15, 2004
Posts: 3



(Msg. 2) Posted: Sun Aug 15, 2004 11:23 am
Post subject: Re: Virtual Host problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

 >I am trying to host 2 name based virtual host web sites.
 >www.waywegos.com and <a style='text-decoration: underline;' href="http://www.synchronizer.org" target="_blank">www.synchronizer.org</a>
 >when I enter the names in my web browser all I get is the test page.
 >Yes I am a newbie so be kind. Smile
 >
 >I added this to the httpd.conf file:
 >
 >NameVirtualHost *:80
 >
 ><VirtualHost *:80>
 > ServerAdmin ridgerunner.DeleteThis@earthlink.net
 > DocumentRoot "/home/httpd/html/www/waywegos"
 > ServerName waywegos.com
 ></VirtualHost>
 >
 ><VirtualHost *:80>
 > ServerAdmin ridgerunner.DeleteThis@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:8Cool
 >*: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<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Virtual Host problem 
Back to top
Login to vote
not21

External


Since: Aug 15, 2004
Posts: 3



(Msg. 3) Posted: Sun Aug 15, 2004 11:41 am
Post subject: Re: Virtual Host problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

 >On Sun, 15 Aug 2004 07:31:40 -0700, Ken <not.RemoveThis@not.com> wrote:
 >
  >>I am trying to host 2 name based virtual host web sites.
  >>www.waywegos.com and <a style='text-decoration: underline;' href="http://www.synchronizer.org" target="_blank">www.synchronizer.org</a>
  >>when I enter the names in my web browser all I get is the test page.
  >>Yes I am a newbie so be kind. Smile
  >>
  >>I added this to the httpd.conf file:
  >>
  >>NameVirtualHost *:80
  >>
  >><VirtualHost *:80>
  >> ServerAdmin ridgerunner.RemoveThis@earthlink.net
  >> DocumentRoot "/home/httpd/html/www/waywegos"
  >> ServerName waywegos.com
  >></VirtualHost>
  >>
  >><VirtualHost *:80>
  >> ServerAdmin ridgerunner.RemoveThis@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:8Cool
  >>*: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

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.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Virtual Host problem 
Back to top
Login to vote
dinges_danges_

External


Since: Aug 03, 2004
Posts: 88



(Msg. 4) Posted: Wed Aug 18, 2004 4:59 am
Post subject: Re: Virtual Host problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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

 > On Sun, 15 Aug 2004 08:23:14 -0700, Ken <not.RemoveThis@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

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

<a style='text-decoration: underline;' href="http://httpd.apache.org/docs/mod/mod_dir.html" target="_blank">http://httpd.apache.org/docs/mod/mod_dir.html</a>

 > 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 <a style='text-decoration: underline;' href="http://www.synchronizer.org" target="_blank">www.synchronizer.org</a> and make sure it can be
resolved by a hosts file and/or DNS entry.

--
Regards
Harrie<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Virtual Host problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Virtual Host Problem - I own two domainnames and have them successfully mapped to a single IP address. My buddy runs a DNS. Does every domain hosted on this Apache webserver then need a virtualhost section? I tried doing this, but the first mentioned virtual host document roo...

Virtual Host Problem - OK I have a web server that up until now served 1 web page. However the company needed to expand and needed to add a few other sites to handle customers and employees. So I added a few virtual host sections for the new sites. I also transfered the old..

virtual host problem - hi all i have add a virtual host in httpd.conf when i try to visit the url from the web my.ip/sitename all images's path point to my.ip/images how can i point image path to my.ip/sitename/images without change href from ="/images" to ="...

strange virtual host problem - I'm a newbie with Apache and I'm trying to configure two virtual hosts in my server, but I always get the test page when I try to connect tho them. I first tried to configure Apache with redhat-config-httpd (I'm running RH Enterprise Linux WS), then I....

Problem of virtual host in apache. - Hi, all I have two website in my machine, so i want to use Virtual host of Apache. The document root of site 1 is "/var/www/localhost/htdocs/site1", and the site 2 is "/var/www/localhost/htdocs/site2". First in the file....
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]