Jump to content

Apache Virtual Hosts Help


Brennan
 Share

Recommended Posts

I am trying to set up Virtual hosts on windows by following this http://httpd.apache.org/docs/2.2/vhosts/name-based.html and I entered this:

NameVirtualHost 192.168.10.10:8000



<VirtualHost 192.168.10.10:8000>

    ServerName www.redwind.hopto.org

    ServerAlias redwind.hopto.org

    DocumentRoot C:WebFilehost

</VirtualHost>



<VirtualHost 192.168.10.10:8000>

    ServerName www.personal.redwind.hopto.org

    ServerAlias personal.redwind.hopto.org

    DocumentRoot C:WebPersonal

</VirtualHost>

But when I try to access it from the browser it gives me this:

Forbidden



You don't have permission to access / on this server.

What am I doing wrong? or did I miss something

Link to comment
Share on other sites

do you have the DirectoryIndex set to files that actually exist in the server's document root, and is Indexes set in the Options for the server? you need to add those to get either a directory list or to select a default file when accessing the root without specifying something like index.html in the URL

Link to comment
Share on other sites

do you have the DirectoryIndex set to files that actually exist in the server's document root, and is Indexes set in the Options for the server? you need to add those to get either a directory list or to select a default file when accessing the root without specifying something like index.html in the URL

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...