Re: permissions problem on my webserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






----- Original Message ----
From: Sander Temme <sctemme@xxxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Sent: Fri, 4 February, 2011 11:01:56 PM
Subject: Re:  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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux