Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerAdmin webmaster@localhost
- DocumentRoot /var/www/html
- # Usar mod_rewrite para redirigir a la página de error
- RewriteEngine On
- RewriteCond %{HTTP_HOST} !^(localhost|127\.0\.0\.1)$ [NC]
- RewriteRule ^(.*)$ /var/www/html/host_no_encontrado.html [L,R=404]
- # Registro de errores
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement