Adg*_*aza 12 apache configuration
我有一个mod_rewrite我想在我的Mac上本地使用但是当我将配置改为我的目录标签时,我得到403 Forbidden错误.我已经尝试了所有其他解决方案,但没有运气.
也许有人会看到我不是......
这是代码:
httpd.conf文件
<Directory />
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
</Directory>
<Directory "/Library/WebServer/Documents/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Run Code Online (Sandbox Code Playgroud)
这被myusername.conf覆盖
<Directory /Users/adrianmaurer/Sites/www>
Options Indexes MultiViews FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Run Code Online (Sandbox Code Playgroud)
虚拟主机文件httpd-vhosts.conf
<VirtualHost *:80>
DocumentRoot /Library/WebServer/Documents
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /Users/adrianmaurer/Sites/www
ServerName myserver.dev
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
Tho*_* II 26
我能够通过设置我的/etc/apache2/users/username.conf文件来修复它(注意你也必须更改Options行,而不仅仅是AllowOverride):
<Directory "/Users/tlhunter/Sites/">
Options All
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
18171 次 |
最近记录: |