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: virtual server still not working restart thread
Author
bbxrider



Joined: 24 Feb 2007
Posts: 27
Location: stocktown ca

PostPosted: Wed 14 Mar '07 22:41    Post subject: virtual server still not working restart thread Reply with quote

Follow up from post www.apachelounge.com/viewtopic.php?t=1465

i think the original post got confused so i wanted to start again this is for apache 2.2.4 on winxp pro.
below i listed my .conf directives that i think are relevant to setting up ultiple virual hosts on same ip address. the problem is the default/index page for job1data.com is served up for both domains, try it. i get no error message when starting apache and no error logs are showing up for either domain.

ServerRoot "C:/apache2"
Listen 80
DocumentRoot "C:/apache2/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
<Directory "C:/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
nameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin bbxrider@job1data.com
DocumentRoot "C:/apache2/htdocs/mywarmbeach/"
DirectoryIndex index.html index.htm
ServerName www.mywarmbeach.com
ServerAlias mywarmbeach.com *.mywarmbeach.com
ErrorLog C:/apache2/log/www.mywarmbeach-error_log
# CustomLog C:/apache2/log/www.mywarmbeach-access_log
</VirtualHost>
<VirtualHost *:80>
ServerAdmin bbxrider@job1data.com
DocumentRoot "C:/apache2/htdocs/"
DirectoryIndex index.html index.htm
ServerName www.job1data.com
ServerAlias job1data.com *.job1data.com
ErrorLog C:/apache2/log/www.job1data-error_log
# CustomLog C:/apache2/log/www.mywarmbeach-access_log
</VirtualHost>
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 19 Mar '07 17:05    Post subject: Reply with quote

Please read this topic about vhosts

http://www.apachelounge.com/viewtopic.php?p=6885

If you will have any question, please ask again!

You can start apache with httpd -S -w to see any error in your vhost config.

Or httpd -t -w to test the rest of the config file.
Back to top


Reply to topic   Topic: virtual server still not working restart thread View previous topic :: View next topic
Post new topic   Forum Index -> Apache