vatzcar Posted January 2, 2007 Share Posted January 2, 2007 hi, i'm trying to run apache for my local network. my server is configured with two IP (192.168.0.3,192.168.0.210), no DNS is running. my DocumentRoot is '/home/www'. virtual hots are configures as:[code]NameVirtualHost *:80[/code][code]<VirtualHost *:80> ServerName 192.168.0.210 DocumentRoot "/home/www/mail.server" ErrorLog logs/mail.server.error_log CustomLog logs/mail.server.access_log common ScriptAlias /cgi-bin/ "/home/www/mail.server/cgi-bin"</VirtualHost>[/code]now whenever i'm pointing my browser to '192.168.0.210' i'm geting an error: Forbidden; You don't have permission to access /index.html on this server.please help me to fix this problem. Thanks Quote Link to comment Share on other sites More sharing options...
the_oliver Posted January 2, 2007 Share Posted January 2, 2007 [quote]DocumentRoot "/home/www/mail.server"[/quote]Apache will be expecting this to point to a folder not a single file. Somthing like DocumentRoot "/home/www/mail/" with files like index.html in the folder. not sure what mail.server is? A script? Im not sure if apache can handle strait IP's in the server name part either. It takes this from the header. Quote Link to comment Share on other sites More sharing options...
vatzcar Posted January 3, 2007 Author Share Posted January 3, 2007 mail.server is a folder. well, may be the slash has left off. i'm going to change the .conf file. Thanks for your help :) Quote Link to comment Share on other sites More sharing options...
vatzcar Posted January 3, 2007 Author Share Posted January 3, 2007 final thing what i'm getting is, when i'm commenting out the <VirtualHost> directive it's working fine, but enabling that making the problem. generating error 'Forbidden'. Quote Link to comment Share on other sites More sharing options...
the_oliver Posted January 3, 2007 Share Posted January 3, 2007 Try checking anything in <directory> tags to see if its assigning permisions to special folders. . . (it may also be work renaming it mail_server)Hope that helps. 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.