The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Symlink Race Condition Protection and apache Alias

Discussion in 'EasyApache' started by Eli L, May 11, 2013.

  1. Eli L

    Eli L Well-Known Member

    Joined:
    Aug 9, 2007
    Messages:
    61
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    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?

    Thanks
     
  2. Eli L

    Eli L Well-Known Member

    Joined:
    Aug 9, 2007
    Messages:
    61
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Bellingham, Washington, United States
    cPanel Access Level:
    Root Administrator
    Been 10 days. Im going to Bump this.
     
  3. cPanelKurtN

    cPanelKurtN Well-Known Member
    Staff Member

    Joined:
    Jan 29, 2013
    Messages:
    95
    Likes Received:
    1
    Trophy Points:
    8
    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.
     
Loading...

Share This Page