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>

按月统计

  1. 2021-12 (357)
  2. 2022-02 (10)
  3. 2022-03 (10)
  4. 2022-05 (1)
  5. 2023-06 (108)
  6. 2023-07 (44)
  7. 2023-08 (3)
  8. 2023-09 (8)
返回顶部 留言