Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Following works fine:
- -----------------------------------------------------------------
- <VirtualHost *:80>
- ServerName "devops"
- DocumentRoot "/www/example1/html"
- <Directory />
- AllowOverride None
- Require all granted
- </Directory>
- ErrorLog "/www/example1/log/error.log"
- CustomLog "/www/example1/log/access_log" combined
- </VirtualHost>
- <VirtualHost *:80>
- ServerName www.mydomain.com
- ServerAlias mydomain
- DocumentRoot "/www/example2/html"
- <Directory />
- AllowOverride None
- Require all granted
- </Directory>
- ErrorLog "/www/example2/log/error.log"
- CustomLog "/www/example2/log/access_log" combined
- </VirtualHost>
- -----------------------------------------------------------------
- Following doesn't:
- -----------------------------------------------------------------
- <VirtualHost 32.64.128.7:80>
- ServerName "devops"
- DocumentRoot "/www/example1/html"
- <Directory />
- AllowOverride None
- Require all granted
- </Directory>
- ErrorLog "/www/example1/log/error.log"
- CustomLog "/www/example1/log/access_log" combined
- </VirtualHost>
- <VirtualHost *:80>
- ServerName www.mydomain.com
- ServerAlias mydomain
- DocumentRoot "/www/example2/html"
- <Directory />
- AllowOverride None
- Require all granted
- </Directory>
- ErrorLog "/www/example2/log/error.log"
- CustomLog "/www/example2/log/access_log" combined
- </VirtualHost>
- -----------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement