我爱编程

Mac Apache

2017-02-20  本文已影响138人  某个胖子

Apache官网
Mac上默认安装Apache


设置Apache默认目录


在使用过程中遇到

bogon.png

解决办法:在系统的hosts(/etc/hosts)文件中添加 127.0.0.1 bogon

conf.png

解决办法:在Apache配置文件(/etc/apache2/httpd.conf)中设置 ServerName 127.0.0.1

You don't have permission to access / on this server.##

解决办法:
1、检查Apache配置文件(/etc/apache2/httpd.conf)中的设置
2、在目录下指定目录下添加index.html文件

无法访问根目录下的子目录##

解决办法:将根目录的options设置为 Options Indexes FollowSymLinks Multiviews

上一篇 下一篇

猜你喜欢

热点阅读