LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   enable ~/public_html/ in RHEL4 and also in Apache (https://www.linuxquestions.org/questions/linux-newbie-8/enable-%7E-public_html-in-rhel4-and-also-in-apache-687665/)

RMLinux 12-02-2008 04:09 AM

enable ~/public_html/ in RHEL4 and also in Apache
 
Hi keen buddies,

how to enable public_html for every user in RHEL4.

tq.

n03x3c 12-02-2008 04:24 AM

Edit httpd.conf

Find UserDir directive and edit it.

If you're on SELinux too, set security context.

Code:

chcon -R -t httpd_sys_content_t /path/to/public_html
And make sure every directory in way of every user's public_html dir, have execute permission on...

RMLinux 12-02-2008 04:27 AM

Quote:

Originally Posted by n03x3c (Post 3361557)
Edit httpd.conf

Find UserDir directive and edit it.

If you're on SELinux too, set security context.

Code:

chcon -R -t httpd_sys_content_t /path/to/public_html
And make sure every directory in way of every user's public_html dir, have execute permission on...


how about the main httpd.conf do I have to edit something inside this file or just create .htaccess file in /home/usr/public_html?

tq.

billymayday 12-02-2008 04:34 AM

Yes, and search for UserDir. Change disable to enable

RMLinux 12-02-2008 04:56 AM

Quote:

Originally Posted by billymayday (Post 3361565)
Yes, and search for UserDir. Change disable to enable

how about the configuration of ssl?

is it included in .htaccess for every user?

how to create a standard format of directory for a certain ssl directory for every user.

like /home/user/public_html/www
like /home/user/public_html/http
like /home/user/public_html/docs
like /home/user/public_html/ssldocs
etc..etc...

thanks


All times are GMT -5. The time now is 09:30 AM.