Apache 2 在此服务器上找不到请求的 URL /
我托管着几个网络服务器。我已经设置了第一个,没有任何问题。在第二台服务器上,当我尝试导航到它时 (http://192.168.1.47:99/),我收到此错误“请求的 URL / 在此服务器上找不到。”我知道端口正在正确转发,因为我可以很好地访问“http://192.168.1.47:99/phpmyadmin”。我已经尝试解决这个问题大约一周了,但我不知所措。任何帮助将不胜感激!
乌班图 Linux 10.04 阿帕奇2 php5
我将提供可能需要的任何其他信息。 谢谢!
更新 - 包含的配置文件 * apache2.conf * httpd.conf * ports.conf * 已启用站点
I'm hosting a couple of webservers. I've set the first one up with no problems. On the second server when I attempt to navigate to it (http://192.168.1.47:99/) I get this error "The requested URL / was not found on this server." I know that the port is being forwarded properly because I can access "http://192.168.1.47:99/phpmyadmin" just fine. I've tried to figure this out for a week or so now and I'm at a loss. Any help would be greatly appreciated!
Ubuntu Linux 10.04
Apache2
php5
I'll provide any additional information that may be needed.
Thanks!
Update - Included config files
* apache2.conf
* httpd.conf
* ports.conf
* sites enabled
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我们需要将以下几行更改为/etc/apache2/apache2.conf:
注意:- 使用sudo属性将此处的AllowOverride None更改为AllowOverride All
期权指数 FollowSymLinks
允许覆盖全部
要求全部授予
现在:- 重新启动您的网络服务器
sudo /etc/init.d/apache2 restart
现在就可以了..
we need to change the following lines to /etc/apache2/apache2.conf:
Note :- Change here AllowOverride None to AllowOverride All usingsudo property
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
Now :- Restart your web server
sudo /etc/init.d/apache2 restart
It will work now..
据我了解,您希望服务器在端口 99 上响应。您的配置正在侦听端口 80。将 site-enabled: 中的以下行更改
为
ports.conf 中
的以下行以
重新启动 apache。应该可以做到这一点。
As far as I understand you, you want your server to respond on Port 99. Your configuration is listening on Port 80 instead. Change the following line in sites-enabled:
to
and in ports.conf
to
Restart your apache. That should do it.
如果您想让它在不更改端口的情况下工作,您可以按照以下步骤操作
并在末尾添加以下行
,然后重新启动 apache
在这里更好地解释
https://askubuntu.com/questions/55280/phpmyadmin-is-安装后无法工作
If you want to make it work without changing port you can follow these steps
and add following line at end
then restart apache
Better explain here
https://askubuntu.com/questions/55280/phpmyadmin-is-not-working-after-i-installed-it