Hi, <br><br>I wanted to create my own web directory to serve pages from for obvious reasons.<br>I edited the httpd.conf file appropriately using the UserDir defaults.<br>I then changed the permissions on my home folder (chmod 711) and then on my web directory as root (chmod 755).<br>
On most distros this is more than enough, on Fedora I had to deal with SELinux.<br><br>I used the system-config-selinux command as root to enable all the apache restrictions and some others as well.<br>Thanks due to this website: <a href="http://optics.csufresno.edu/%7Ekriehn/fedora/fedora_files/f9/howto/selinux.html">http://optics.csufresno.edu/~kriehn/fedora/fedora_files/f9/howto/selinux.html</a><br>
<br>SELinux still prevented the apache from serving from the directory.<br>I then used the command:<br># chcon -R -h -t httpd_sys_content_t  my_web_dir<br><br>And finally, I could serve pages alongside SELinux.<br><br>However, I&#39;ve run into a strange problem.<br>
<br><a href="http://localhost/~user/">http://localhost/~user/</a> OKAY<br><a href="http://localhost/~user/newdirX">http://localhost/~user/newdirX</a> OKAY<br><a href="http://localhost/~user/newdirX/newdirY">http://localhost/~user/newdirX/newdirY</a> NOT OKAY<br>
<br>The newdirY is hidden.<br>Is there some directory depth restriction used by apache?<br>I don&#39;t think this is an SELinux problem because no warning is issued, I might be wrong.<br><br>I&#39;d like to be able to create limitless directories in my webdir and have their contents served without issue.<br>
<br>