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 16:36:20 GMT




----- Original Message ----
From: Joost de Heer <joost@sanguis.xs4all.nl>
To: users@httpd.apache.org
Sent: Fri, 4 February, 2011 8:47:44 PM
Subject: Re: [users@httpd] permissions problem on my webserver

On Fri, February 4, 2011 16:08, 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."

> What should I do in this situation?

Add the proper DirectoryIndex
(http://httpd.apache.org/docs/2.2/mod/mod_dir.html#directoryindex).

Joost

---------------------------------------------------------------------
Yes this came to my mind also so I did the new vhost configuration as 
<VirtualHost *:80>
        ServerAdmin webmaster@localhost

        DocumentRoot /var/www
        <Directory /var/www>
        DirectoryIndex index.html index.php
        Options Indexes FollowSymLinks
        </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 this still did not helped.

I checked this link also
http://onlamp.com/pub/a/apache/2004/04/22/apacheckbk.html
I tried in vhost above 
Options +Indexes FollowSymLinks
but this also did not helped me much.
Any more suggestions?




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