我有IMSCP和Laravel 5 / Prestashop,如果我想显示任何错误页面(404),我会看到默认的Apache2错误页面。
Apache错误日志: [Sat Jan 02 00:07:57.459343 2016] [core:info] [pid 6290:tid 140116177704704] [client 83.240.80.243:62174] AH00128:文件不存在:/var/www/virtual/webpage.cz/htdocs /errors/404.html
Apache配置:
` ServerAdmin webmaster@webpage.cz ServerName webpage.cz ServerAlias www.webpage.cz
DocumentRoot /var/www/virtual/webpage.cz/htdocs
LogLevel debug
ErrorLog /var/log/apache2/webpage.cz/error.log
<FilesMatch "\.php5?$">
SetHandler "proxy:unix:/var/run/php5-fpm-webpage.cz.socket|fcgi://webpage.cz"
</FilesMatch>
<Directory /var/www/virtual/webpage.cz>
Options +SymLinksIfOwnerMatch
Require all granted
</Directory>
<Directory /var/www/virtual/webpage.cz/htdocs>
AllowOverride All
</Directory>
ProxyRequests Off
ProxyPass /stats http://localhost/stats/webpage.cz
ProxyPassReverse /stats http://localhost/stats/webpage.cz
<Location /stats>
RewriteEngine on
RewriteRule ^(.+)?config=([^?&]+)(.*) $1?config=webpage.cz&$3 [NC,L]
AuthType Basic
AuthName "Statistics for domain webpage.cz"
AuthUserFile /var/www/virtual/webpage.cz/.htpasswd
AuthGroupFile /var/www/virtual/webpage.cz/.htgroup
Require group statistics
</Location>
Include /etc/apache2/imscp/webpage.cz.conf
`
有任何帮助吗?
谢谢!
答案 0 :(得分:1)
i-mscp有一个插件用于自定义默认服务器页面 http://i-mscp.net/filebase/index.php/File/28-ServerDefaultPage/