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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access public_html through jailed Apache server

Status
Not open for further replies.

aznluvsmc

MIS
Mar 21, 2004
476
CA
Hi,

I would like to access my /home/username/public_html directory from my jailed apache server. Right now it can't access my home directory since it's not in the jail. I don't really want to move the directory into the jail and have two copies so I was thinking about using a link. Does anyone know what changes I need to make to the httpd.conf file for it to follow a link to go outside it's jail or if it's even possible?
 
Is this what you want?
Code:
Alias /mypublic/ "/home/username/public_html/"
<Directory "/home/username/public_html">
   Options Indexes FollowSymlinks MultiViews
   AllowOverride None
   Order allow,deny
   Allow from all
</Directory>

then access it by typing

``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
No, that wouldn't work because the server is jailed. I ended up recreating the home directory inside the jail. Thanks anyways.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top