Apache 2.4.25 Debian 9 Como adicionar pagina de erro 404 personalizada ?
	
	
		Oi, to tentando colocar uma pagina de erro 404 personalizada no MK-Auth só que não ta indo! alguem sabe como fazer isso! erro404.html na raiz para teste não deu certo, quando uso ErrorDocument 404 http://www.youtube.com ai funciona só local que não!
apache2
sites-available
000-default.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride all
</Directory>
<Directory /var/www/>
<IfModule mod_apparmor.c>
AAHatName hotsite
</IfModule>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
Header unset X-Powered-By
Header add MKAUTH "HOTSITE"
Header set MKAUTH "HOTSITE"
# Config bandwidth limitation 500Kbps
#BandwidthModule On
#Bandwidth all 504800
</Directory>
ErrorLog /var/log/apache2/error.log
ErrorDocument 404 /erro404.html
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel crit
CustomLog /var/log/apache2/access.log combined
	 
	
	
	
		Re: Apache 2.4.25 Debian 9 Como adicionar pagina de erro 404 personalizada ?
	
	
		consegui fazer vou compartilha aqui oque eu fiz: edite o arquivo localized-error-pages.conf na pasta conf-available do apache2 para exatamente como abaixo, dai é só colocar as paginas em html no local informado sé for em php tem que muda a configuração e para puxar os css tem que editar a localização é só iniciar de /error/ateoarquivo/css.css só assim deu certo aqui:
(edite o arquivo localized-error-pages.conf)
# SISTEMA MK-AUTH64 DEFAULT APACHE
Alias /error /opt/mk-auth/error
<Directory /opt/mk-auth/error>
	Options IncludesNoExec
        AddOutputFilter Includes html
	Order allow,deny
	Allow from all
        Require all granted
</Directory>
#			ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
#			ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
			ErrorDocument 403 /error/HTTP_FORBIDDEN.html
			ErrorDocument 404 /error/HTTP_NOT_FOUND.html
#			ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
#			ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
#			ErrorDocument 410 /error/HTTP_GONE.html.var
#			ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
#			ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
#			ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
#			ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
#			ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
			ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html
#			ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
#			ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
#			ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
#			ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet