laoqi

 

using UserDir to redirect to local web page

first add to new line in the /etc/apache2/httpd.conf:

UserDir workspace/webPage

then if you type localhost/~liqi/test.html, this would display the web page in the /home/liqi/workspace/webPage/test.html.

now add the UserDir module to apache2

sudo a2enmod userdir

then restart apache2, it works!

posted on 2012-03-22 19:47  laoqi  阅读(219)  评论(0编辑  收藏  举报

导航