httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Godrej <jamesgod...@yahoo.in>
Subject Re: [users@httpd] permissions problem on my webserver
Date Fri, 04 Feb 2011 17:53:29 GMT




----- Original Message ----
From: Sander Temme <sctemme@apache.org>
To: users@httpd.apache.org
Sent: Fri, 4 February, 2011 11:01:56 PM
Subject: Re: [users@httpd] permissions problem on my webserver


On Feb 4, 2011, at 7:08 AM, James Godrej wrote:

> when I go to a browser then rather than seeing the index page what I see is the 
>
> directory starts getting downloaded.(Now I see a permissions denied error)
> "You don't have permission to access / on this server."

You must have removed that index.html, and the resultant overlay of the Options 
statements in your config is that Indexes are forbidden. 


Note that the default vhost on Ubuntu has a <Directory "/" > block, and the main 
server config doesn't.  


I have never heard of Ilias, but you'll find that http://localhost/ilias/ will 
give you better results.  


S. 

> 
> Following is my vhost 
> 
> <VirtualHost *:80>
>        ServerAdmin webmaster@localhost
>        DocumentRoot /var/www
>        ErrorLog /var/log/apache2/error.log
>        LogLevel warn
>        CustomLog /var/log/apache2/access.log combined
> </VirtualHost>

You don't specify Options Indexes for <Directory "/var/www">, so you're working 
with whatever the server default is.  


> and following line I see in log 
> 192.168.43.1 - - [04/Feb/2011:20:31:08 +0530] "GET / HTTP/1.1" 403 261 "-" 
> "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 
> Ubuntu/10.04 (lucid) Firefox/3.6.12"
> 
> and in error.log 
> 
> [Fri Feb 04 20:30:23 2011] [error] [client 192.168.43.1] Directory index 
> forbidden by Options directive: /var/www/
> [Fri Feb 04 20:31:08 2011] [error] [client 192.168.43.1] Directory index 
> forbidden by Options directive: /var/www/

Options, or lack thereof which means you're working with whatever is the server 
default.

> What should I do in this situation?

What are you trying to achieve?  The path to the Ilias installation is under the 
subdirectory, can you get there?  Would you rather have that in the root dir? 


If you want to show content in the root dir, put content in there (you must have 
removed the default index.html).  If you want to have Ilias in the root dir, 
unzip it there or make the ilias directory your root.

S.

-- 
Hi Sander thanks for your message I reached there you are correct.
The correct configuration should be as follows

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        ServerName localhost
        DocumentRoot /var/www
     <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        <Directory /var/www/>
        Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all

        </Directory>

        ErrorLog /var/log/apache2/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/access.log combined


</VirtualHost>

but do let me know why did this configuration work I copied it from an existing 
working configuration.




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message