HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   403 access denied on all sites except sites of client2 (http://www.howtoforge.com/forums/showthread.php?t=45637)

H2SO4 6th May 2010 23:38

403 access denied on all sites except sites of client2
 
Hi guys,

i've a "little" problem. All sites what not owned by client2 get error 403. If i edited the site owner to client2 then operate without problem.

Quote:

Forbidden

You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Quote:

Originally Posted by ls -la /var/www/domain.mine.nu/web/
összesen 12
drwx--x--- 4 web26 client8 98 máj 6 19.29 .
drwxr-x--x 6 web26 client8 60 máj 6 19.29 ..
drwxr-xr-- 2 web26 client8 111 máj 6 19.29 error
-rwxr-xr-- 1 web26 client8 1406 máj 6 19.29 favicon.ico
-rwxr-xr-- 1 web26 client8 0 máj 6 19.29 .htaccess
-rwxr-xr-- 1 web26 client8 1861 máj 6 19.29 index.html
-rwxr-xr-- 1 web26 client8 34 máj 6 19.29 robots.txt
drwxr-x--- 2 root root 22 máj 6 19.29 stats


Quote:

Originally Posted by ls -la /var/www/domain.mine.nu/web/error/
összesen 28
drwxr-xr-- 2 web26 client8 111 máj 6 19.29 .
drwx--x--- 4 web26 client8 98 máj 6 19.29 ..
-rwxr-xr-- 1 web26 client8 1792 máj 6 19.29 400.html
-rwxr-xr-- 1 web26 client8 1806 máj 6 19.29 401.html
-rwxr-xr-- 1 web26 client8 1809 máj 6 19.29 403.html
-rwxr-xr-- 1 web26 client8 1806 máj 6 19.29 404.html
-rwxr-xr-- 1 web26 client8 1810 máj 6 19.29 405.html
-rwxr-xr-- 1 web26 client8 1851 máj 6 19.29 500.html
-rwxr-xr-- 1 web26 client8 1906 máj 6 19.29 503.html


Quote:

Originally Posted by access.log
x.x.x.x - - [06/May/2010:20:25:37 +0000] "GET / HTTP/1.1" 403 0 "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; hu; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3"

Quote:

Originally Posted by error.log
[Thu May 06 20:25:37 2010] [error] [client x.x.x.x] Symbolic link not allowed or link target not accessible: /var/www/domain.mine.nu

If i edited the vhost file to absolute path then get this in log.

Quote:

Originally Posted by error.log
[Thu May 06 20:55:18 2010] [error] [client x.x.x.x] (13)Permission denied: access to / denied
[Thu May 06 20:55:18 2010] [error] [client x.x.x.x] (13)Permission denied: access to /error/403.html denied

Debian 5.0.4 and ISPC 3.0.2.1

falko 7th May 2010 13:58

The permissions seem to be wrong. Can you try this?
Code:

chmod 755 /var/www/domain.mine.nu/web/
chmod 755 /var/www/domain.mine.nu/


H2SO4 8th May 2010 20:04

I've tried and get same error.
But now i've found the problem, all clients folder - except client2 - get wrong permission when the ispc create the folders.
Quote:

Originally Posted by ls -la /var/ww/clients/
drwxr-xr-x 5 root root 48 máj 7 22.18 .
drwxr-xr-x 6 root root 4096 máj 7 22.11 ..
drwxr-xr-x 8 root root 4096 máj 7 22.11 client2
drwxr-x--- 2 root root 6 máj 4 20.56 client7
drwxr-x--- 3 root root 39 máj 7 22.11 client8

It's a fresh installed system, on the other system where the ispc is updated from earlier version have not this (bug ?) problem.

H2SO4 22nd May 2010 16:02

Need to make a bug report or you guys have any other solution?
Thats not a solution that i need manualy modify the permission after all new client.

Hans 23rd May 2010 07:29

Which Linux distribution are you using? In the mean time i host a lot of websites managed by ISPConfig3 and i do not have such problems.

H2SO4 23rd May 2010 16:31

Debian Lenny

H2SO4 4th June 2010 16:25

Any other ? :rolleyes:


All times are GMT +2. The time now is 01:07.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.