Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName not.configured
- DocumentRoot /var/www
- </VirtualHost>
- <VirtualHost my.server.ip.address>
- DocumentRoot /home/user/public_html
- ServerName www.example.com
- ServerAlias example.com
- ErrorLog logs/example.com-error_log
- </VirtualHost>
- <VirtualHost 192.168.1.1:80>
- DocumentRoot /dev/null
- ServerName *
- Redirect 404 /
- </VirtualHost>
- # Uncomment the line below if not previously added in the file
- # RewriteEngine On
- # Rule to redirect to the named host
- # Replace [xx.xx.xx.xx] woth your host's IP address
- # Replace [yourdomain.com] with your host's proper URL
- RewriteCond %{HTTP_HOST} ^xx.xx.xx.xx$
- RewriteRule (.*) http://yourdomain.com/$1 [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement