LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Bug Reports (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=9)
-   -   Symlink problem in 4.2 (http://www.litespeedtech.com/support/forum/showthread.php?t=6315)

dims 10-17-2012 07:38 AM

Symlink problem in 4.2
 
In 4.1.13 symlink work fine
example:
dpr -> ../s.domain.com/_static/borpas-dpr
and file download successful:
http://domain.net/dpr/file.exe
in config for vhost:
<allowSymbolLink>1</allowSymbolLink>
each domain have the same user.

after update to 4.2 symlink doesnt work and returned 403 error
In log file nothing wrote about symlink error

I see in changelog for 4.2:
"Improved symbolic link security for shared hosting by introducing LiteSpeed specific directives "DisableSymlinkOverride" and "VhostRestrained"."
what means that each directive?

mistwang 10-18-2012 11:35 AM

"DisableSymlinkOverride" does not allow change symbolic link related configuration via .htaccess
"VhostRestrained" does not allow linking to anywhere beyond user's home directory.

dims 10-22-2012 06:52 AM

Quote:

Originally Posted by mistwang (Post 35442)
"DisableSymlinkOverride" does not allow change symbolic link related configuration via .htaccess
"VhostRestrained" does not allow linking to anywhere beyond user's home directory.

What default parameters for this options?
How me fix 403 error in 4.2
We want upgrade all our servers for 4.2, but cant because of this bug.

mistwang 10-22-2012 10:42 AM

It is just "On", "Off".

Also, check http://www.litespeedtech.com/docs/we...trictOwnership

dims 10-25-2012 01:41 AM

Quote:

Originally Posted by mistwang (Post 35476)
It is just "On", "Off".

Also, check http://www.litespeedtech.com/docs/we...trictOwnership

This option is off
Screen of settings:
https://www.evernote.com/shard/s246/...113234.jpg.jpg
And file download ok
https://www.evernote.com/shard/s246/...113911.jpg.jpg

When switch version to 4.2 file dont download, setting dont changed:
https://www.evernote.com/shard/s246/...114016.jpg.jpg

mistwang 10-25-2012 08:11 AM

you need to check /usr/local/apache/logs/error_log to find out the reason why it is denied, then adjust configuration accordingly.
Try "Force reinstall" of 4.2, it might be fixed as we have adjusted default values to off.


All times are GMT -7. The time now is 10:01 PM.