LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   need to link a home directory to an apache directory (https://www.linuxquestions.org/questions/linux-server-73/need-to-link-a-home-directory-to-an-apache-directory-488105/)

Melsync 09-29-2006 05:56 PM

need to link a home directory to an apache directory
 
I have this apache server running on fedora. The localhost host folders are at /var/www/html, which have root permissions.

I would like to have my sites at /home/user and be able to manipulate them with user permissions.

How can I do a symbolink link from /var/www/hmtl to a home directory.
I have tried
Quote:

sudo ls -s /var/www/html/mysite
from /home/user/mysite, but it doesn't work.

Thanks.

pljvaldez 09-29-2006 06:09 PM

Edit the apache config file and change the document root /home/user. You can also set an option in the config file to enable personal web pages which reside in the /home/user/public_html directory and are reference by going to mysite.com/~user/

trickykid 09-29-2006 08:33 PM

Need to configure Apache to FollowSymlinks..

Read the http://httpd.apache.org/docs/1.3/mod...html#directory feature and how to configure a directory to follow symlinks in order for this to work.

dive 09-30-2006 05:08 AM

Quote:

Originally Posted by Melsync
How can I do a symbolink link from /var/www/hmtl to a home directory.
I have tried from /home/user/mysite, but it doesn't work.

Just so you know, a sym link is made by 'ln -s' not 'ls -s'


All times are GMT -5. The time now is 10:14 AM.