问题描述
- mac配置apache的问题,用户目录下404访问不了
-
/localhost/可以看到it works.
在user文件夹下面配置了,1 <Directory "/Users/bjhl/Sites/"> 2 Options FollowSymLinks Indexes MultiViews 3 AllowOverride All 4 Order allow,deny 5 Allow from all 6 </Directory>
httpd.conf里面的deny都改掉了
但是/localhost/~用户名/显示的是:
Not Found
The requested URL /~bjhl was not found on this server.
解决方案
建议用虚拟主机,把httpd.conf里面的
Virtual hosts
Include /private/etc/apache2/extra/httpd-vhosts.conf(这句注释去掉)
解决方案二:
建议使用virtual host
参考:
apache virtual host
时间: 2024-11-30 05:46:20