symlink in URL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    #1

    symlink in URL

    I'm developing a website (PHP/Apache), and I need to be able to use a
    'symlink' inside a URL where the symlink is a folder not a file.

    I have been able to use symlinks that point directly to a file. Now I need
    to be able to have the symlink point to a folder (which is a parent to other
    content).

    I have used PHP code to generate a SYMLINK to a folder, and I have
    successfully tested the symlink through PUTTY. What I can't seem to do is
    to utilise the symlink through my browser.

    When I use the symlink in the url, my server returns error 500 (internal
    server error).

    Can this be done?
    Is there a special way of setting up the url to make it work?
    Do I need to setup something in my .htaccess?
    Do I need to setup something in my httpd.conf or php.ini?

    Cheers,
    Nap

    I've never used newsgroups b4, so please pardon any mistakes I make. I
    welcome any feedback though so I don't make them again.


  • Janwillem Borleffs

    #2
    Re: symlink in URL

    DJ wrote:
    Do I need to setup something in my httpd.conf or php.ini?
    >
    In httpd.conf, add:

    <Directory /path/to/webfolder>
    Options FollowSymLinks
    </Directory>


    JW


    Comment

    Working...