2013年1月3日 星期四

httpd apache2

Apache目錄: /etc/apache2


確定 userdir_module 沒有被注解
    LoadModule userdir_module libexec/apache2/mod_userdir.so


把 /etc/apache2/users/Guest.conf 複製一份成 /etc/apache2/users/userName.conf
將內容修改為


<Directory "/Users/userName/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>


指令 httpd -k [start|stop|restart]
開啟 httpd


瀏覽器 http://localhost/~userName

沒有留言:

張貼留言