phpstudy中apache的默認根目錄的配置
阿新 • • 發佈:2019-02-16
roo pre con option 禁止 study 需要 apache all
默認配置文件是: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的默認根目錄的配置