【发布时间】:2018-03-13 18:17:36
【问题描述】:
我在带有 Apache 版本 2.4.7 (Ubuntu) [IP: 192.168.1.10] 的 Windows 10 上运行 WSL,并且使用 http://192.168.1.10 从 IP: 192.168.1.107 访问时出现 403 禁止错误,但是,@987654322 @工作。当我从 .107 ping mmtserver 时,它给了我来自 fe80::65a5:53a6:cf99:5644%6 [可能是 IPv6 问题?] 的回复。我已经尝试了一些关于允许、拒绝和允许所有人的更改,但继续提出 403。我已经搜索并搜索了类似的 stackoverflow 403 问题,但似乎找不到适合我的解决方案。有什么建议吗?
以下是 /etc/hosts、/etc/apache2/apache.conf、/etc/apache2/enabled-sites/000-default.conf 和 /etc/apache2/ports.conf 的一些相关摘录。
/etc/hosts
127.0.0.1 localhost
192.168.1.10 mmtserver
/etc/apache2/apache2.conf
ServerName 192.168.1.10:80
<Directory />
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Require all granted
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
/etc/apache2/ports.conf
Listen 192.168.1.10:80
/etc/apache2/sites-enabled/000-default
<VirtualHost 192.168.1.10:80>
DocumentRoot "/var/www/html"
ServerName 192.168.1.10:80
<Directory />
Options Indexes Multiviews FollowSymLinks
AllowOverride None
Require all granted
</Directory>
</VirtualHost>
【问题讨论】:
标签: http-status-code-403 apache2.4 windows-subsystem-for-linux