Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : vHost Madness



Threaded Mode | Print  

 vHost Madness (0 Replies, Read 2853 times)
gurdain
Group: Member
Post Group: Newbie
Posts: 8
Status:
Hi guys

I've set up two internal intranets. With the following custom vhosts file, the websites are working fine from another PC on the LAN

However, on the server itself, both domains go to the server root (192.168.0.213) - this is causing built in wordpress cronjobs to fail as they are run on the server directly. I've disabled the cronjobs for now.

I've tried many configurations and have got myself confused. If someone could point me out the right config then I'd be thankful.

The hosts file is:
127.0.0.1    staffinfoboard.co.uk
127.0.0.1    your.fivee.co.uk

The custom vhosts file is:
#### standard VirtualHost ####
#NameVirtualHost 127.0.0.1:80
NameVirtualHost *:80

<VirtualHost *:80>
<Directory "C:/Ampps/www/">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ServerName 192.168.0.213
ServerAlias 192.168.0.213
ScriptAlias /cgi-bin/ "C:/Ampps/www/cgi-bin/"
DocumentRoot "C:/Ampps/www/"
</VirtualHost>

####################################

#### staffinfoboard.co.uk VirtualHost ####

<VirtualHost *:80>
<Directory "C:/Ampps/www/infoboard">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ServerName staffinfoboard.co.uk
ServerAlias staffinfoboard.co.uk *.staffinfoboard.co.uk
ScriptAlias /cgi-bin/ "C:/Ampps/www/infoboard/cgi-bin/"
DocumentRoot "C:/Ampps/www/infoboard"
ErrorLog "C:/Ampps/apache/logs/staffinfoboard.co.uk.err"
CustomLog "C:/Ampps/apache/logs/staffinfoboard.co.uk.log" combined
</VirtualHost>

####################################
           
#### your.fivee.co.uk VirtualHost ####
           

<VirtualHost *:80>
<Directory "C:/Ampps/www/your5e">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
allow from All
</Directory>
ServerName your.fivee.co.uk
ServerAlias your.fivee.co.uk *.your.fivee.co.uk
ScriptAlias /cgi-bin/ "C:/Ampps/www/your5e/cgi-bin/"
DocumentRoot "C:/Ampps/www/your5e"
ErrorLog "C:/Ampps/apache/logs/your.fivee.co.uk.err"
CustomLog "C:/Ampps/apache/logs/your.fivee.co.uk.log" combined
</VirtualHost>

####################################
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 24, 2024, 1:22 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.022