Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie: Apache 2.0 & symbolic links

Status
Not open for further replies.

sourian

Instructor
Oct 31, 2002
2
RO
Hi!

I have a problem with Apache 2 on a RedHat 8.0. I use it only for testing, internal use.

I need to create a symlink inside /var/ to a folder in /home/user/work for example. The work folder belongs to the user and has chmod 755.

The problem is that, although I can see the apache test page when I put my IP in browser, when I add /work it says:

Forbidden

You don't have permission to access /work on this server.


I have allowed it to follow symlinks, even if they don't have the same owner, but still no good.

Anyone can help me?

Thank you.

Sourian
 
i reckon i understand what you're doing (although i'd look for a way around the problem if i were you...)

i'm not 100% but i reckon you may need to look at your httpd.conf file and change the contents of the <Directory /> bit to look like this...

<Directory /home/usr/work>
Options FollowSymLinks
Order Allow,Deny
Allow from all
</Directory>

it's my understanding that this will allow people to peek inside your work directory. its fairly self-explanatory, and i strongly suggest using some security methods....

(like i said i'm not certain this will solve your problem, but that seems a good place to start)

hope that helped [pipe]
 
Thank you SaltyDuke!

I will look in the httpd.conf file.

I don't need much security as this system is behind firewall and use only for internal testing.

Thanks a lot.

Regards,
Sourian &quot;Teach your brain to think by itself.&quot;
Frank Herbert
&quot;DUNE&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top