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
https://forums.phpfreaks.com/topic/32567-virtual-host-problem/
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
https://forums.phpfreaks.com/topic/32567-virtual-host-problem/#findComment-151490
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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