OS X 10.9 webDAV修复

升级到10.8以后,发现lion里面的web共享被删除了。现在可以尝试修复一下。

 

操作步骤

1.开始apache

输入 http://localhost 测试,如果显示 it works!说明apache已经开启

否则,在终端输入: sudo apachectl restart

 

2、但这时用户根目录(http://localhost/~username)还不能访问,为了让 ~/Sites 下面的内容可以访问,继续以下的几个步骤。

  1)看看 username.conf 文件是否存在:

  2)ls /etc/apache2/users/

  3)如果没有见到你的用户名命名的 .conf 文件,那么就需要手动建立一个:

  cd /etc/apache2/users/

  sudo vi username.conf    注意你需要把 username 换成你的用户名;

  4)粘贴以下内容,同样注意替换你的用户名:

    <Directory "/Users/username/Sites/">

    Options Indexes MultiViews

    AllowOverride All

    Order allow,deny

    Allow from all  

    </Directory>

  5)保存退出后重启下 Apache:sudo apachectl restart

 

访问 http://localhost/~username/ 应该可以看到“您的网站”了。

 

--------------

接下来,继续按照以前的方法配置webDAV服务器就可以了-直接从第二步开始配置

http://www.cnblogs.com/traximus/archive/2013/02/02/2890247.html

 

PS:由于系统设置里面已经没有web共享这个入口了,现在完整的路径在这个位置

posted @ 2013-10-21 12:25  traximus  阅读(438)  评论(0编辑  收藏  举报