I have some CGI scripts deep withing my directory structure that I frequently access via my browser (my scripts must be in the cgi-bin or they won't be executed). Having recently discovered (forgive me my ignorance) symbolic links, I created a symbolic link in my web accessible folder (parent to my cgi-bin) to the folder containing my CGI scripts. I created it using the following syntax:

symlink (NEW_LINK_PATH,FOLDER_LOCATION_PATH);

And this works fine. I can see it in my <web-based-file-manager-application>, and when I click on it it is properly linked to the folder in question.

All of my scripts can be accessed just fine when going to

http://www.myserver.com/cgi-bin/<longpath>/script.cgi

However when attempting

http://www.myserver.com/<symbolic link>/script.cgi

I get a 403 forbidden error. What do I need to do differently? Permissions on the symbolic link are 755.

In reply to Accessing symbolic links from a browser by soffen

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.