LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2014, 03:50 AM   #1
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 603

Rep: Reputation: 34
Share a sub directory from home though Apache


Hi I am trying to share a /home/123 through Apache but when I try to access I am getting below error


[Mon Dec 22 19:45:38 2014] [error] [client 192.168.66.72] (13)Permission denied: cannot read directory for multi: /home/123/


And my configuration file is as below

Alias /123 "/home/123"

<Directory "/home/123">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>

If I change the /home/123 to /usr/local like above works.

Can some one tell what is going on or can one share a home directory at all?

Thanks and Best Regards
 
Old 12-22-2014, 05:50 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,598

Rep: Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532
Hi,

Make sure the directory has 755 permissions (apache needs that in order to search the directory)
Also if you're running a SELinux enabled distro, give the appropriate rights to that directory
Code:
chcon -Rt httpd_sys_content_t /home/123
for more detail have a look here
 
Old 12-22-2014, 06:22 AM   #3
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 603

Original Poster
Rep: Reputation: 34
Hi bathory, thanks it worked
 
Old 12-22-2014, 06:23 AM   #4
procfs
Member
 
Registered: Jan 2006
Location: Sri Lanka
Posts: 603

Original Poster
Rep: Reputation: 34
Hi Bathory, it worked

Thanks and Best Regards
 
  


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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM
Share /home Directory aeruzcar Linux - General 5 09-02-2003 08:50 PM
Can I share my /home directory.. GhostInDarkness Linux - Newbie 7 08-28-2003 04:02 PM
Share home directory cruella Linux - Newbie 4 01-22-2002 02:17 AM


All times are GMT -5. The time now is 08:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration