logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Both domains go to the same website
Author
svfusion



Joined: 12 Oct 2007
Posts: 5

PostPosted: Fri 12 Oct '07 21:15    Post subject: Both domains go to the same website Reply with quote

I am trying to host two websites on the same machine. They both are going to the same dir. Here is my conf,


Removed http.conf

Admin note
See the forum rules: Do not paste whole configuration files, and this Forum is not a consulting service where you can dump your config file and ask for it to be analyzed.



Thanks!
Back to top
svfusion



Joined: 12 Oct 2007
Posts: 5

PostPosted: Fri 12 Oct '07 21:31    Post subject: Reply with quote

then what is it here for?
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 679

PostPosted: Fri 12 Oct '07 21:40    Post subject: Reply with quote

This is what the forum rules (please read them) says:

It is a forum where you can ask specific questions and include small, relevant config excerpts.

Also note point 7 in the forum rules:
Do not argue with the enforcement of the above commandments.
Back to top
svfusion



Joined: 12 Oct 2007
Posts: 5

PostPosted: Fri 12 Oct '07 22:12    Post subject: Reply with quote

.post

Last edited by svfusion on Thu 28 May '20 4:13; edited 1 time in total
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Fri 12 Oct '07 23:47    Post subject: Reply with quote

One problem is that you need to use forward slashes (/) instead of backslashes (\) in httpd.conf - even on Windows.
Quote:
<VirtualHost *>
ServerName fusionlan.com
DocumentRoot C:/www/fusionlan
</VirtualHost>

<VirtualHost *>
ServerName gibsonl33tz.com
DocumentRoot C:/www/gibsonl33tz
</VirtualHost>


-tom-
Back to top
svfusion



Joined: 12 Oct 2007
Posts: 5

PostPosted: Sat 13 Oct '07 15:15    Post subject: Reply with quote

i just changed the slashses and still getting the same results.
Back to top
tdonovan
Moderator


Joined: 17 Dec 2005
Posts: 611
Location: Milford, MA, USA

PostPosted: Sat 13 Oct '07 17:42    Post subject: Reply with quote

You might want to check out Common Apache Misconfigurations - Name Based Virtual Hosts in the Apache WIKI.

-tom-
Back to top


Reply to topic   Topic: Both domains go to the same website View previous topic :: View next topic
Post new topic   Forum Index -> Apache