Jump to content

Help setting up virtual host in my apache server


ROCKINDANO

Recommended Posts

Hello,

 

I am trying to set up two virtual hosts in my apache server, but having trouble. i have read the apache website and its little to confusing. this is what i am trying to do.

 

I want to set it up in my local machine before putting it in my webserver and running the risk of bringing my web down. so this is what i have:

# Use name-based virtual hosting.

NameVirtualHost *:80

 

<VirtualHost *>

    ServerName Daniel_web.CityofEdinburg.local

    ServerAlias cityofedinburg.local *.cityofedinburg.local

    DocumentRoot "E:/Program Files/Apache Software Foundation/Apache2.2/htdocs/Edinburg site"   

</VirtualHost>

 

 

<VirtualHost *>

    ServerName Daniel_web.CityofEdinburg.local

    ServerAlias cityweb1.local *.cityweb1.local

    DocumentRoot "G:/cityweb1"

</VirtualHost>

 

can someone help me here?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.