新安装的宝塔面板,要设置404页面,网站配置文件里的规则怎么和论坛其他关于404的不一样呢?- <VirtualHost *:80>
- ServerAdmin webmaster@example.com
- DocumentRoot "/www/wwwroot/www.she***ndao.cn"
- ServerName 24f67175.www.shen***ndao.cn
- ServerAlias www.shengcundao.cn www.xn--q8s42a515c.com sh**u*o.cn xn--q8s42a515c.com
- <font color="#ff0000"> #errorDocument 404 /404.html
- ErrorLog "/www/wwwlogs/www.shen***ao.cn-error_log"
- CustomLog "/www/wwwlogs/www.shen***dao.cn-access_log" combined</font>
- #引用重定向规则,注释后配置的重定向代理将无效
- IncludeOptional /www/server/panel/vhost/apache/redirect/www.sh**dao.cn/*.conf
- #DENY FILES
- <Files ~ (\.user.ini|\.htaccess|\.git|\.svn|\.project|LICENSE|README.md)[ DISCUZ_CODE_10 ]gt;
- Order allow,deny
- Deny from all
- </Files>
-
- #PHP
- <FilesMatch \.php[ DISCUZ_CODE_10 ]gt;
- SetHandler "proxy:unix:/tmp/php-cgi-56.sock|fcgi://localhost"
- </FilesMatch>
-
- #PATH
- <Directory "/www/wwwroot/www.sh**dao.cn">
- SetOutputFilter DEFLATE
- Options FollowSymLinks
- AllowOverride All
- Require all granted
- DirectoryIndex index.php index.html index.htm default.php default.html default.htm
- </Directory>
- </VirtualHost>
复制代码
我的404打开是这样
我的打开是这样
而不是这样
|
|