Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Virtual Hosts not working

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Sending .txt as HTML  
Author Message
dazno1

External


Since: Oct 30, 2003
Posts: 9



(Msg. 1) Posted: Thu Oct 30, 2003 3:10 pm
Post subject: Virtual Hosts not working
Archived from groups: alt>apache>configuration (more info?)

Got 2 virtual hosts and the virtualhost basic

whevever I goto www.mydomain1.com it's fine, but when I goto
www.mydomain2.net it points to the default:80 vhost

my configuration is:

namevirtualhost *

<virtualhost *>
servername domain1.com
extrabits here..
<directory...
</directory>

<virtualhost *>
servername domain2.net
extrabits here..
<directory...
</directory>

<virtualhost_default_:80>
extrabits here..
<directory...
</directory>

I have put the server on a network and edited another machine's hosts
file to point to the server

Any ideas?

Thanks
Daz

Running apache on winy2k

 >> Stay informed about: Virtual Hosts not working 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 2) Posted: Thu Oct 30, 2003 11:16 pm
Post subject: Re: Virtual Hosts not working [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

daz <dazno1.DeleteThis@aol.com> wrote:

 > <virtualhost *>
 > servername domain1.com
 > extrabits here..
 > <directory...
 > </directory>

 > <virtualhost *>

....and where is the </virtualhost> tag? Running apachectl configtest
should tell you where the error is.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Virtual Hosts not working 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
virtual hosts deny not working - Can anyone tell me what is wrong with the below or a reason why this isnt taking effect. My stats show im still getting hits from the IP's im denying Could Allow all be in the httpd and overriding this? <Directory /> Options FollowSymLinks...

Apache22 FreeBSD Install and Virtual Hosts not working - I am trying for a pretty basic install here but to no avail. FreeBSD 6.0 Apache22 (From Ports) Apache serves pages from the default folder but... I get the following error on a restart httpd: Syntax error on line 407 of..

anyone have multiple virtual hosts over SSL working on Ubu.. - I have been fighting my Apache2 config for months trying to get multiple virtual hosts working over SSL. Does anyone have this working for Ubuntu 7.10? I'd love to see how you've done it. Cheers, Scott

Vitual Hosts not working after an upgrade from apache 1.3 .. - Hi, I just upgraded a suse box from 8.2 to 9.1 and had to rewrite the apache config to suit v2.0. The problem is trying to get named based virtual hosts working. I created a file /etc/apache2/vhosts.d/vhosts.conf that includes the virtual hosts..

Virtual Hosts? - I'm wanting to use one IP address to host multiple domains, ie web hosting. I assume that "virtual hosts" are the thin I need to focus on here and is this basically a similar concept to Host Headers in IIS 5.0? I'm running Windows 2000 with Apa...
   Web Hosting Problem Solving Community! (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 ]