Re: HTTPD.conf question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rahul:
>>> System-config-securitylevel or setsebool -P httpd_enable_homedirs=1
>>> would toggle a SELinux boolean to allow that.


Michael Shaw:

>> Actually it will not work with SELinux enabled at all.  I've tried
>> fiddling around with all kinds of settings, but the only way I can get
>> it to work is to disable SELinux totally.


Jonathan Rawle:

> As well as setting the boolean as described above, you need to set the
> context of your public_html directory:
> 
> chcon -R -t httpd_sys_content_t ~/public_html

And, I think you still need to set the usual *ix permissions.  Make all
servable directories, and their parents, executable to other users.
Make all files being served readable to other users.

rwx-----x /home
rwx-----x /home/username
rwx-----x /home/username/public_html
rwx---r-x /home/username/public_html/homepage.html

-- 
Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux