View previous topic :: View next topic |
Author |
Message |
Jowilly Guru
Joined: 22 Jun 2002 Posts: 319
|
Posted: Wed Jul 21, 2004 1:06 am Post subject: apache no permission to access..., doesnt display images,... |
|
|
Hi,
I've now spent 8 hours searching the forums, google, newsgroups... to no avail.
Apache loads my main page, but the images are not displayed. If I try to load an image directly I get this:
Code: |
Forbidden
You don't have permission to access /images/topB.jpg on this server.
|
The same happens if I try to access another page (directly of by clicking on a link on the main page).
I have edited /etc/apache2/conf/commonapache2.conf and tried to allow everything in /var/www/localhost/htdocs , even in / ...
I have added Indexes and All to Options; etc... nothing works.
I have tried to add an entry for /var/www/localhost/htdocs/images.
Files permissions are 755, 644, apache:apache.
The error log is filed with lines as:
Code: |
Permission denied: /var/www/localhost/htdocs/images/blank.gif/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
|
In the error log, the image names appear as if they where directories, why is that ? (as in htdocs/images/blank.gif/.htaccess)
I have only 1 .htaccess file in /var/www/localhost/htdocs , it has the same permissions as everything else.
What more can I do ? |
|
Back to top |
|
|
sessio n00b
Joined: 23 Jul 2004 Posts: 22 Location: tampere finland perkele
|
Posted: Wed Jul 28, 2004 7:08 am Post subject: |
|
|
having the same problem.
the documentroot used to work when i had directory / on "allow from all".
then i read about the security and denied that and allowed only specific dirs.
~userdirs have had the problem all the way, though.
using php5 and apache2. |
|
Back to top |
|
|
Jowilly Guru
Joined: 22 Jun 2002 Posts: 319
|
Posted: Wed Jul 28, 2004 11:27 am Post subject: |
|
|
I have now fixed it by setting all references of Allowoverride to None in the directory settings of the apache config. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|