PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Sun Nov 23, 2014 9:26 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Feb 16, 2011 3:27 am 
Offline
Forum Newbie

Joined: Thu Jan 20, 2011 1:55 am
Posts: 1
I am not able to use more than one virtual hosts at a time on my MAMP testing server. Here is the excerpt from the end of my httpd.conf file -

Syntax: [ Download ] [ Hide ]
NameVirtualHost *

<VirtualHost *>
ServerName edmazursf.com
DocumentRoot "/Users/stonefree/Sites/EdMazur/"
</VirtualHost>

<VirtualHost *>
ServerName cleantechms.com
DocumentRoot "/Users/stonefree/Sites/CleanTechMS/"
</VirtualHost>


and my hosts file

Syntax: [ Download ] [ Hide ]
127.0.0.1 http://www.edmazursf.com edmazursf.com
127.0.0.1 http://www.cleantechms.com cleantechms.com


The problem is that the second host, cleantechms.com will point to edmazursf.com 's site (while keeping the original URL) .But if I comment out the first host and restart MAMP, cleantechms.com will work properly

Can someone tell me what I'm doing wrong?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group