Posted by:
Sarabveer
(---.nwrknj.east.verizon.net)
Windows 7 Ultimate SP1 64bit
Wamp 2.5 64bit
Apache(Win64) 2.4.9
MySQL 5.6.17
PHP 5.5.12
OpenSSL 1.0.1g
Wamp Icon: Green
Hi, I am trying to get the vhosts file working. I have 3 hosts. The First one is my main site (www.v33r.cf), The Second one is my mobile site (m.v33r.cf), and the third is a SourceMod plugin compiler. (spider.v33r.cf)
My Problem is that the 3rd one is not working, the 2nd one won't work unless your on a mobile device. (I set that way, its fine). But when I type spider.v33r.cf, it goes to the main site, but if I type m.v33r.cf, it goes to my Mobile Site (I goes to my Main site if your on Desktop). I tried spider.v33r.cf on my phone, but same thing happens.
So basically, the 1rst and 2nd work, but the third one won't.
Here is my vhosts config:
<VirtualHost *:80>
ServerName v33r.cf
ServerAlias www.v33r.cf
DocumentRoot "C:\wamp\www"
ErrorLog "logs\errors.log"
CustomLog "logs\access.log" common
Redirect permanent / [
www.v33r.cf]
</VirtualHost>
<VirtualHost *:80>
ServerName spider.v33r.cf
ServerAlias spider.v33r.cf
DocumentRoot C:\wamp\vhosts\spider
ErrorLog "logs\spider_errors.log"
CustomLog "logs\spider_access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerName m.v33r.cf
ServerAlias m.v33r.cf
DocumentRoot C:\wamp\vhosts\mobile
ErrorLog "logs\m_errors.log"
CustomLog "logs\m_access.log" common
</VirtualHost>
Edited 1 time(s). Last edit at 09/02/2014 07:41PM by Sarabveer.