Go Back  HTML Forums - Free Webmaster Forums and Help Forums > SERVER ADMINISTRATION > Windows Administration
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 04-30-2009, 07:50 AM
  #1
Horus_Kol
Mod of the Underlay
 
Horus_Kol's Avatar
 
Join Date: Jun 2002
Location: At a desk, hooked up and ready to rock
Posts: 17,350
iTrader: (0)
Horus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of light
Windows/Apache: virtualhosts displaying same site

Windows hosts file
Code:
127.0.0.1       horuskol.dev
127.0.0.1       wp-test.dev
Apache httpd-vhosts.conf
Code:
NameVirtualHost *:80
Include C:/Server/Apache2.2/conf/extra/vhosts/*.conf
and my two host files:

horuskol.conf
Code:
<VirtualHost 127.0.0.1 192.168.1.100>
    
    ServerAdmin stuart@horuskol.co.uk
    ServerName horuskol.dev
    
    ErrorLog F:\projects\horuskol\logs\error.log
    TransferLog F:\projects\horuskol\logs\access.log
    
    DocumentRoot F:\projects\horuskol\public_html
    
    <Directory F:\projects\horuskol\public_html>
        Order Allow,Deny
        Allow from All
        
        Options +FollowSymLinks
        AllowOverride All
    </Directory>

</VirtualHost>
wptest.conf
Code:
<VirtualHost 127.0.0.1 192.168.1.100>
    
    ServerAdmin stuart@horuskol.co.uk
    ServerName wp-test.dev
    
    ErrorLog F:\projects\wp-test\logs\error.log
    TransferLog F:\projects\wp-test\logs\access.log
    
    DocumentRoot F:\projects\wp-test\wp
    
    <Directory F:\projects\wp-test\wp>
        Order Allow,Deny
        Allow from All
        
        Options +FollowSymLinks
        AllowOverride All
    </Directory>

</VirtualHost>
when I request http://wp-test.dev/ I get the content for horuskol.dev - and when request horuskol.dev I get content, but some odd behaviour (possibly cookie related).

been staring and staring and have no idea myself - any ideas why wp-test is displaying horuskol content?
__________________
New Photo Gallery: Modus InOperandi
Personal Blog: HorusKol
Articles on Programming and Development (PHP/HTML/CSS, C/C++, more): RandomTweak
Horus_Kol is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-01-2009, 08:44 AM
  #2
Horus_Kol
Mod of the Underlay
 
Horus_Kol's Avatar
 
Join Date: Jun 2002
Location: At a desk, hooked up and ready to rock
Posts: 17,350
iTrader: (0)
Horus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of lightHorus_Kol is a glorious beacon of light
a colleague found the problem - and i read around a bit more...

the fix was:
Code:
<virtualhost *:80>
although, reading around, I'm still not sure why:
http://httpd.apache.org/docs/1.3/mod...amevirtualhost
http://httpd.apache.org/docs/1.3/mod...ml#virtualhost

these seem to imply you can set NameVirtualHost to *:80 and then restrict at the virtualhost level..
also discovered HTTPD will throw an error when you restart with multiple IPs in NameVirtualHost
__________________
New Photo Gallery: Modus InOperandi
Personal Blog: HorusKol
Articles on Programming and Development (PHP/HTML/CSS, C/C++, more): RandomTweak
Horus_Kol is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote

Reply
KEEP TABS
SPONSORS
 
Boxedart



 
 


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  POSTING RULES
 
 
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 07:05 AM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.