Jump to content

virtual host problem


vatzcar

Recommended Posts

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
Link to comment
Share on other sites

[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.
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.