Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-22-2003, 05:45 AM   #1
Registered: Jul 2002
Location: Vukojebina, Europe, Earth
Distribution: M$ Lunix v6.66
Posts: 168

Rep: Reputation: 30
Angry Apache & symbolic links


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 ), 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:\\\stuff:

[Wed Jan 22 12:46:26 2003] [error] [client] Symbolic link not allowed: /usr/local/apache/Stuff/


Last edited by zeky; 01-22-2003 at 05:49 AM.
Old 01-22-2003, 06:44 PM   #2
Registered: Jan 2003
Location: Urbana, IL
Distribution: Slackware, Mandrake
Posts: 62

Rep: Reputation: 15
Check the httpd.conf file. There is an option you can set called


# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot "/var/www/htdocs"

# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
# First, we configure the "default" to be a very restrictive set of
# permissions.
<Directory />
    Options FollowSymLinks
    AllowOverride None

# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.

# This should be changed to whatever you set DocumentRoot to.
<Directory "/var/www/htdocs">

# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
    Options Indexes FollowSymLinks MultiViews
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
    AllowOverride All

# Controls who can get stuff from this server.
    Order allow,deny
    Allow from all
An example from my httpd.conf set for working symlinks.
Old 02-06-2008, 07:12 AM   #3
LQ Newbie
Registered: Feb 2008
Location: Ireland
Distribution: Fedora8, Solaris10
Posts: 5

Rep: Reputation: 0
Hi Thanks For the reply

I changed my httpd.conf to

<Directory />
Options FollowSymLinks
AllowOverride None

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??

Old 06-19-2008, 09:23 AM   #4
Registered: Jul 2007
Posts: 72

Rep: Reputation: 16
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

AllowOverride None

--Ukesh Upendran

Last edited by uks; 07-24-2009 at 05:21 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
strange question regarding symbolic links and apache drisay Slackware 3 11-16-2004 11:14 AM
mkisofs & symbolic links to directories Imek Linux - General 1 10-28-2004 06:32 PM
Symbolic Links Greg_courageous Linux - Newbie 1 05-10-2004 07:05 AM
Symbolic links bkmesenbrink Linux - Newbie 2 11-13-2002 11:54 AM
Apache and Symbolic Links epeus Linux - General 2 11-09-2002 11:52 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration