Brennan Posted March 7, 2007 Share Posted March 7, 2007 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 Quote Link to comment Share on other sites More sharing options...
Sparda Posted March 7, 2007 Share Posted March 7, 2007 Does the web server have read permissions on the directory? Quote Link to comment Share on other sites More sharing options...
Brennan Posted March 7, 2007 Author Share Posted March 7, 2007 it should I didn't set it otherwise Quote Link to comment Share on other sites More sharing options...
Oberon Posted March 8, 2007 Share Posted March 8, 2007 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 Quote Link to comment Share on other sites More sharing options...
Oberon Posted March 8, 2007 Share Posted March 8, 2007 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 Quote Link to comment Share on other sites More sharing options...
Brennan Posted March 8, 2007 Author Share Posted March 8, 2007 yeah I do. It is a normal index.html file Quote Link to comment Share on other sites More sharing options...
Oberon Posted March 9, 2007 Share Posted March 9, 2007 Then, since I don't know your network setup or folder permissions, the only other thing I could suggest is making sure Indexes is on for the server and seeing if you get a directory listing. Quote Link to comment Share on other sites More sharing options...
Brennan Posted March 9, 2007 Author Share Posted March 9, 2007 everything works good normaly but when I added that it didn't work Quote Link to comment Share on other sites More sharing options...
Oberon Posted March 10, 2007 Share Posted March 10, 2007 everything works good normaly but when I added that it didn't work What didn't work, exactly? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.