Symlink Race Condition Protection and apache Alias

Eli L

Well-Known Member
Aug 9, 2007
Bellingham, Washington, United States
cPanel Access Level
Root Administrator
I've had to enable the Symlink Race Condition Protection option when compiling apache but since doing that I am no longer able to use my global custom error pages on my server.

I have set it up to use the following, for example:
Alias /404.shtml /usr/local/cpanel/sys_cpanel/custom404.shtml

Is there a workaround for this problem?



Well-Known Member
Jan 29, 2013
cPanel Access Level
Root Administrator
Hi Eli L,

Sorry about the delayed response. To answer your question directly, no, not as it stands now.
The Symlink Protection patch prohibits static files from being accessed if they aren't owned by the virtual host user.

The important part to this response is, "static files". This means, if you pass the files through an alternative Content Handler (e.g. php, cgi, etc), then you _should_ be able to get around this issue. Unfortunately, there are trade-offs to this decision, namely speed and resources.