首页 > Web开发 > 详细

phpstudy中apache的默认根目录的配置

时间:2019-02-16 18:40:35      阅读:594      评论:0      收藏:0      [点我收藏+]

  默认配置文件是:vhosts.conf。

  安装laravel后需要把根目录配置到public。

<VirtualHost _default_:80>
DocumentRoot "C:\phpStudy\PHPTutorial\WWW\public"
    ServerName localhost
    ServerAlias localhost
  <Directory "C:\phpStudy\PHPTutorial\WWW\public">
#下面被注释的代码,用“localhost”访问时会禁止访问
#Options -Indexes -FollowSymLinks +ExecCGI Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "C:\phpStudy\PHPTutorial\WWW\public" ServerName www.gohosts.com ServerAlias gohosts.com <Directory "C:\phpStudy\PHPTutorial\WWW\public"> Options FollowSymLinks ExecCGI AllowOverride All Order allow,deny Allow from all Require all granted </Directory> </VirtualHost>

 

phpstudy中apache的默认根目录的配置

原文:https://www.cnblogs.com/qingsong/p/10388564.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!