Change default Apache webpage to a user home page
Dear all,
I am now using CentOS5 as the server providing Apache services. I have managed to setup the web page under /home/user1/public_html, now I wish to change the default web page of our server to /home/user1/public_html. i tried to modify httpd.conf, in which i changed the "/var/www/" to the above user directory, but didnot work. Please kindly suggest. Thank you. Regards, Eric |
Hello,
I managed to realize it by making a symbolic link between my user home directory and /var/www/html. And now it works. Appreciate any comments on this methods. Eric |
Hello,
here comes a new problem. How can i make sure the update in my user directory can immediately be synchronized to /var/www/html? Thanks. Eric |
Hi,
Since you use a symlink, from /home/user1/public_html to /var/www/html there is no problem at all. Editing a file in /home/user1/public_html is the same as editing it at /var/www/html Read here the definition of symlink |
Quote:
Eric |
How did you make the symlink? I thought you used:
Code:
ln -s /home/user1/public_html /var/www/html |
Quote:
#ln -s /home/user1/public_html/* /var/www/html wondering if the hidden files under public_html would affect the update in /var/www/html. Thanks, Eric |
Quote:
|
Quote:
Eric |
What is the output of:
Code:
ls -ld /var/www/html |
All times are GMT -5. The time now is 12:01 AM. |