LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 09-29-2006, 05:56 PM   #1
Melsync
Member
 
Registered: Sep 2005
Posts: 75

Rep: Reputation: 15
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.
 
Old 09-29-2006, 06:09 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 264Reputation: 264Reputation: 264
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/
 
Old 09-29-2006, 08:33 PM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,121

Rep: Reputation: 121Reputation: 121
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.
 
Old 09-30-2006, 05:08 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,063

Rep: Reputation: 221Reputation: 221Reputation: 221
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'
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apache link to other directory path rino.caldelli Linux - Server 11 09-01-2006 06:20 AM
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 02:37 PM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-03-2006 11:08 PM
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Apache, spgm, my home directory manitoulinnerd Linux - Software 1 07-15-2004 09:02 PM


All times are GMT -5. The time now is 08:28 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration