View Full Version : 4.0.2: 403 error for all static files
andreas
04-25-2009, 04:59 AM
Since the upgrade to 4.0.2, all static file request cause 403 errors.
Switching back to 4.0 solves the problem.
MindTooth
04-25-2009, 07:40 AM
With the guide of usefuljaja, I have a symlink for phpmyadmin at, but now I can't get phpMyAdmin to run.
Birger :)
gboudreau
04-25-2009, 12:49 PM
Since the upgrade to 4.0.2, all static file request cause 403 errors.
Switching back to 4.0 solves the problem.
Same thing here. 4.0.1 doesn't have this problem. Can't see anything in the log files.
mistwang
04-25-2009, 08:33 PM
Maybe it is caused by "Restained" configuration, bug has been fixed in 4.0.2 to make it work properly.
http://www.litespeedtech.com/docs/webserver/config/vhostlist/#restrained
If symbolic links has been used, it could be the problem.
gboudreau
04-26-2009, 04:58 AM
Maybe it is caused by "Restained" configuration, bug has been fixed in 4.0.2 to make it work properly.
http://www.litespeedtech.com/docs/webserver/config/vhostlist/#restrained
If symbolic links has been used, it could be the problem.
My VH_ROOTs are all something like:
$SERVER_ROOT/www-html/xyz
Where $SERVER_ROOT/www-html is a symlink to /var/www/html
With "Restrained" enabled, requests to any VH with a VH_ROOT that contains a symlink return 403 because of that, but I don't think it should.
mistwang
04-27-2009, 08:33 AM
If VH_ROOT is $SERVER_ROOT/www-html/xyz, the server will not serve anything beyond its vhost root.
Your vhosts are configured natively, not through httpd.conf, right?
gboudreau
04-27-2009, 09:34 AM
(Yes, all my VH are configured from LS admin interface, not httpd.conf)
Even files in directly in VH_ROOT returned 403.
Example:
Domain = www.danslereseau.com
VH_ROOT = $SERVER_ROOT/www-html/dlr
http://www.danslereseau.com/index.php returned 403.
MindTooth
04-27-2009, 01:39 PM
Where do you suggest I put phpMyAdmin then? A folder under $VH_ROOT?
Birger :)
mistwang
04-27-2009, 10:39 PM
Please download and try 4.0.3 release package. Just change the version number in the download link to get it.
Should work better.
MindTooth
04-28-2009, 10:39 AM
Installed it successfully, but what is much better?
Birger :)
mistwang
04-28-2009, 11:44 AM
The new release still do not allow symbolic link to a directory out side virtual host root, so if you want to share phpMyAdmin code among many users, you have to configure it through "Alias" in httpd.conf, or "Static Context" from LSWS console.
That's the way to bring external directories beyond vhost root into the document root.
Or, disable "Restrained" option.
MindTooth
04-28-2009, 01:47 PM
Thank you for the reply, but this is beyond my knowledge. I just disabled Restrained.
Birger :)
andreas
05-03-2009, 04:50 AM
Thanks, 4.0.3 fixes it.
andreas
05-03-2009, 06:07 AM
Oops, I detected a bug with 4.0.3:
I have a symlink called "b" that links to a directory "a". In 4.0, if I access blabla.com/b/index.php, the working directory for index.php is "b". In 4.0.3, the working directory is "a". It looks like LSWS resolves the symlink instead of just running b/index.php.
andreas
06-30-2009, 11:47 AM
The behaviour still exists in 4.0.5. Are you planning to fix this in a future release, or do I need to find a different solution to my problem?