LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

Rep: Reputation: 31
Angry 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 ), 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

Last edited by zeky; 01-22-2003 at 05:49 AM.
 
Old 01-22-2003, 06:44 PM   #2
jkrohn
Member
 
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

FollowSymLinks

eg:
Code:
#
# 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
</Directory>

#
# 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
</Directory>
An example from my httpd.conf set for working symlinks.
 
Old 02-06-2008, 07:12 AM   #3
mrowlands
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
</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
 
Old 06-19-2008, 09:23 AM   #4
uks
Member
 
Registered: Jul 2007
Posts: 72

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

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:32 PM.

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