|
The
Apache server is capable of serving web pages straight from the
directories of your system user accounts. This allows all the system
users the ability to run their own web sites which are hosted off the
main server. This is exactly the same way that many web server companys
provide websites for their customers and its relatively easy to enable. Name: Apache HomePage: http://www.apache.org/ Function: Webserver
1. Make sure apache is installed rpm –qa | grep apache 2. Make sure apache is turn off /etc/init.d/httpd stop  3. Edit the httpd.conf file & Change the following configuration from nano /etc/httpd/conf/httpd.conf
Code.conf:
<IfModule mod_userdir.c> UserDir disable # UserDir public_html </IfModule>
|
to
Code.conf:
<IfModule mod_userdir.c> # UserDir disable UserDir public_html </IfModule>
|
 4. Then set the httpd.conf file this.
Code.conf:
<Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Deny from all </LimitExcept> </Directory>
|
 5. Now we have to make the universal directories mkdir /etc/skel/public_html chmod 705 /etc/skel/public_html
 6. Now make a very basic index.html page and change the permissions nano /etc/skel/public_html/index.html
Code.conf:
<html> <body> Testing out user page </body> </html>
|
 chmod 604 /etc/skel/public_html/index.html
 7. Now each user can make there own website and access it using a web browser http://ip-address-of-the-apache-server/~username
BookMarking:
cell1
|
|
cell3 |
|
cell4
|
|
Trouble Shooting:
Go to the wiki page Go to the 'Contact Us ' Forum Go to the how-to's Support Forum
External Links:
http://www.brennan.id.au/13-Apache_Web_Server.html#users |