创建宝塔面板
根据图片添加网站,创建根目录 c:/web
推荐配置文件
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot "c:/web"
ServerAlias 43.142.33.95
ErrorLog "C:/BtSoft/wwwlogs/43.142.33.95-error.log"
CustomLog "C:/BtSoft/wwwlogs/43.142.33.95-access.log" combined
#redirect 重定向
IncludeOptional conf/redirect/43.142.33.95/*.conf
#proxy 反向代理
IncludeOptional conf/proxy/43.142.33.95/*.conf
ErrorDocument 404 /404.html
#DENY FILES
<Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)$>
Order allow,deny
Deny from all
</Files>
#PHP
Include conf/php/00.conf
#PATH
<Directory "c:/web">
Options FollowSymLinks ExecCGI
AllowOverride All
Require all granted
DirectoryIndex index.php default.php index.html index.htm default.html default.htm
</Directory>
</VirtualHost>
设置防盗链
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后发表评论
注册