简体   繁体   English

Wamp Server 3.0.6可以正常工作,但不能在网络上运行

[英]Wamp Server 3.0.6 working fine as localhost, but not on network

I have just installed WAMP server on a server, when logged into the server, everything works fine, website is displayed as i would expect, however if i try to access the website from a remote machine I get a message 我刚刚在服务器上安装了WAMP服务器,登录到服务器后,一切正常,网站显示为我所期望的,但是如果我尝试从远程机器访问网站,我收到一条消息

'Forbidden - you don't have permission to access / on this server' '禁止 - 您无权访问/在此服务器上'

I have checked the server is online and all services are running... and they are 我检查过服务器是否在线,所有服务都在运行......他们是

In your directory of virtualhost, change Require local with Require all granted 在您的virtualhost 目录中,将Require local更改为Require all granted

<VirtualHost *:80>
    ServerName localhost
    DocumentRoot your_path
    <Directory  "your_path/">
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

change to: 改成:

    <Directory  "your_path/">
        Options +Indexes +FollowSymLinks +MultiViews
        AllowOverride All
        Require all granted
    </Directory>

Most likely apache permissions on the vhost. 很可能是vhost上的apache权限。 Make sure it's not limited to localhost. 确保它不仅限于localhost。 If possible post your apache log. 如果可能,请发布您的apache日志。 The error log will tell you why. 错误日志将告诉您原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM