Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

development host

Status
Not open for further replies.

akabowlla

Technical User
Nov 26, 2009
2
CA
Hi,

i have a wamp server running on my xp os and have a website. I would like to create a new instance of the website and use it for development under the same webserver ( apache). Is there any way i can do this? I read about vitual hosts but I think that is only for aliases. Can u plz giv me a start up on how to achieve this? I looked thru my httpd.conf file with no avail. Thx!
 
I tries adding this to my httpd.conf file:
Code:
NameVirtualHost *:80

<virtualHost *:80>

  serverAdmin admin@localhost
  DocumentRoot c:/wamp/[URL unfurl="true"]www/Prod[/URL]
  ServerName  localhost/Prod
  ErrorLog c:/wamp/logs/apache_error.log
  Customlog c:/wamp/logs/access.log
 </virtualHost>
 
 <virtualHost *:80>
    serverAdmin admin@localhost
    DocumentRoot c:/wamp/[URL unfurl="true"]www/Dev[/URL]
    ServerName  localhost/Dev
    ErrorLog c:/wamp/logs/apache_error.log
    Customlog c:/wamp/logs/access.log
 </virtualHost>
but this did not work when i try opening the webpage
 
Hi

Those slashes in the [tt]ServerName[/tt] look strange. I am quite sure they are not allowed there. Try this :
Code:
    ServerName  prod
Then requesting [ignore][/ignore] should work.

You are restarting [tt]httpd[/tt] after editing the configuration file, right ?


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top