Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName laboratorio.miercoles
- ServerAlias www.laboratorio.miercoles
- ServerAlias *.laboratorio.miercoles
- DocumentRoot /var/www/laboratorio.miercoles
- # Habilitar motor de reescritura
- RewriteEngine On
- # Redirigir cualquier subdominio que no sea www a la página de error
- RewriteCond %{HTTP_HOST} !^www\.laboratorio\.miercoles$ [NC]
- RewriteCond %{HTTP_HOST} ^([a-z0-9]+)\.laboratorio\.miercoles$ [NC]
- RewriteRule ^ /error.html [L,R=404]
- # Directorio para la página de error personalizada
- Alias /error.html /var/www/error/error.html
- <Directory "/var/www/error">
- AllowOverride None
- Require all granted
- </Directory>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement