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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.