phpstudy You don't have permission to access /phpi

<p>You don&#39;t have permission to access /phpinfo.php on this server.</p><p>这个问题只有在高版本的php中才出现,5.6及以下都不会出现。</p><p>修改前:</p><pre class="brush:bash;toolbar:false">&lt;VirtualHost*:80&gt; ServerNamexxx.com DocumentRootD:/phpStudy/WWW/xxx &lt;Directory&quot;D:/phpStudy/WWW/xxx&quot;&gt; OptionsIndexesFollowSymLinksMultiViews AllowOverrideAll Requirelocal &lt;/Directory&gt; &lt;/VirtualHost&gt;</pre><p>修改后:</p><p>#第二个主机</p><pre class="brush:bash;toolbar:false">&lt;VirtualHost*:80&gt; ServerName192.168.0.xxx ServerAliasbcclearnning.com DocumentRootD:\phpStudy\WWW\bcc_service &lt;Directory&quot;D:\phpStudy\WWW\bcc_service&quot;&gt; OptionsFollowSymLinksExecCGI AllowOverrideAll Orderallow,deny Allowfromall Requireallgranted &lt;/Directory&gt; &lt;/VirtualHost&gt;</pre><p>#如果需要添加更多,继续写就行了!ServerAlias 设置别名</p><p>问题得到解决!</p>
RangeTime:0.007702s
RangeMem:204.59 KB
返回顶部 留言