LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache issue (https://www.linuxquestions.org/questions/linux-server-73/apache-issue-635006/)

plk 04-13-2008 05:22 AM

Apache issue
 
Hi there,
I know my web page is in /var/www but ...

Is there any way to have it in home/user/public_html such as connecting to http://localhost/~user/index.htm would show the page?

Cheers

plk

IBall 04-13-2008 05:50 AM

Sure.

Run the following command:
[CODE]a2enmod userdir[CODE]

By default the "live directory" will be $HOME/public_html. Any document placed in here will be accessible at http://localhost/~username/

--Ian

plk 04-14-2008 09:30 AM

That did the trick :-)
Thank you very much !

plk


All times are GMT -5. The time now is 03:23 PM.