selinux and per-user web directories

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

 



Hi,

I wanted to create my own web directory to serve pages from for obvious reasons.
I edited the httpd.conf file appropriately using the UserDir defaults.
I then changed the permissions on my home folder (chmod 711) and then on my web directory as root (chmod 755).
On most distros this is more than enough, on Fedora I had to deal with SELinux.

I used the system-config-selinux command as root to enable all the apache restrictions and some others as well.
Thanks due to this website: http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f9/howto/selinux.html

SELinux still prevented the apache from serving from the directory.
I then used the command:
# chcon -R -h -t httpd_sys_content_t  my_web_dir

And finally, I could serve pages alongside SELinux.

However, I've run into a strange problem.

http://localhost/~user/ OKAY
http://localhost/~user/newdirX OKAY
http://localhost/~user/newdirX/newdirY NOT OKAY

The newdirY is hidden.
Is there some directory depth restriction used by apache?
I don't think this is an SELinux problem because no warning is issued, I might be wrong.

I'd like to be able to create limitless directories in my webdir and have their contents served without issue.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux