4.0.2: 403 error for all static files

gboudreau

Well-Known Member
#5
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

LiteSpeed Staff
#6
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?
 

mistwang

LiteSpeed Staff
#11
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.
 

andreas

Well-Known Member
#14
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

Well-Known Member
#15
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?
 
Top