打开宝塔目录浏览
在宝塔web面板中,找到,对应网站的“设置”中找到“配置文件”
#startSite
<VirtualHost *:88>
DocumentRoot "C:\wwwroot\***********"
ServerName **************
ServerAlias *************
#START-ERROR-PAGE
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 502 /502.html
#END-ERROR-PAGE
#startPHP
<Files ~ "\.php$">
Options FollowSymLinks ExecCGI
AddHandler fcgid-script .php
FcgidWrapper "C:/BtSoft/WebSoft/php/5.2/php-cgi.exe" .php
</Files>
#endPHP
#start301
#end301
#REFERER-START
#REFERER-END
#PROXY-START
#PROXY-END
<Directory "C:\wwwroot\**************">
Options Indexes FollowSymLinks
Order deny,allow
Allow From All
AllowOverride All
Require all granted
DirectoryIndex index.php default.php index.html index.htm default.html default.htm
</Directory>
ErrorLog "logs/***error.log"
CustomLog "logs/*****-access.log" common
</VirtualHost>
#endSite
下载链接付费查看哦!
支付宝扫一扫打赏0.5元查看<Directory "/var/www/">
Options Indexes FollowSymLinks #开启目录索引
# Options FollowSymLinks #取消目录索引
DirectoryIndex index.php index.html index.htm #网页默认文件顺序
AllowOverride ALL
Order deny,allow
Allow From All
</Directory>