Apache & symbolic links
hi
here is the scenario: my apache rootdir is /usr/local/apache now, because i don't have enought free space on my server 2 put up some stuff that i need to share thru the web (no it's not pr0n :p), i mounted my other share (on another box) to /stuff. I made in Apache rootdir a symbolic link that shows --> /stuff (ln -s /stuff /usr/local/apache/stuff i want this folder to be browsable thrue web (+Indexes). My Q is, how should lines in httpd.conf look, to allow me this symlinks? I know i've allready once done that, but i forgot what was the syn tax... :( here is what error_log has to say, when trying to reach this http:\\195.66.25.130\stuff: [Wed Jan 22 12:46:26 2003] [error] [client 195.66.25.130] Symbolic link not allowed: /usr/local/apache/Stuff/ --zeky:study: |
Check the httpd.conf file. There is an option you can set called
FollowSymLinks eg: Code:
# |
Hi Thanks For the reply
I changed my httpd.conf to <Directory /> Options FollowSymLinks AllowOverride None </Directory> AllowOverride All in order to let it allow symbolic link, then restarted apache but I am still getting the browser message and that the requested URL counld not be found. The apache error_log still still shows the error :error <clinet IP address> file does not exist usr/local/apache2/htdocs/usr just another question does apache set a symbolic link at the install for htdocs?? Thanks m |
Hi
You would find an entry like this for your Document root, for ex, <Directory "/var/www/htdocs"> in the httpd.conf. Allow the same thing there and restart httpd and see what happens FollowSymLinks AllowOverride None --Ukesh Upendran |
All times are GMT -5. The time now is 05:40 PM. |