Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Listen 80
- <IfModule ssl_module>
- Listen 443
- </IfModule>
- <IfModule mod_gnutls.c>
- Listen 443
- </IfModule>
- <VirtualHost *:80>
- ServerName www.example.org
- ServerAlias example.org www4.example.org
- ServerAdmin webmaster@xxxxxxxx.com
- Redirect 301 "/" "https://www.example.org/"
- </VirtualHost>
- <IfModule ssl_module>
- SetEnvIf HTTPS https HTTPS=on
- Header always set Strict-Transport-Security "max-age=63072000" env=HTTPS
- Header always set Content-Security-Policy: upgrade-insecure-requests env=HTTPS
- Header always set X-XSS-Protection: "1; mode=block"
- Header always set X-Frame-Options: sameorigin
- Header always set X-Content-Type-Options: nosniff
- Header always set X-Permitted-Cross-Domain-Policies: "master-only"
- <VirtualHost *:443>
- ServerName www.example.org
- DocumentRoot /var/www/example/
- ServerAdmin webmaster@xxxxxxxx.com
- SSLEngine on
- SSLCertificateFile "/etc/apache2/ssl/crt/www.example.org.crt"
- SSLCertificateChainFile "/etc/apache2/ssl/crt/IntermediateCA.example.crt"
- SSLCertificateKeyFile "/etc/apache2/ssl/www.example.org.key"
- DirectoryIndex index.html index.htm index.php
- <FilesMatch "^wp-login.php$|^wp-admin/.*">
- AuthName "Login Login"
- AuthType Basic
- AuthUserFile /etc/apache2/.htpasswd
- Require valid-user
- </FilesMatch>
- </VirtualHost>
- </IfModule>
- <VirtualHost *:80>
- ServerName www.otherdomain.org
- ServerAlias otherdomain.org www4.otherdomain.org
- ServerAdmin webmaster@xxxxxxxx.com
- Redirect 301 "/" "https://www.otherdomain.org/"
- </VirtualHost>
- <IfModule ssl_module>
- SetEnvIf HTTPS https HTTPS=on
- Header always set Strict-Transport-Security "max-age=63072000" env=HTTPS
- Header always set Content-Security-Policy: upgrade-insecure-requests env=HTTPS
- Header always set X-XSS-Protection: "1; mode=block"
- Header always set X-Frame-Options: sameorigin
- Header always set X-Content-Type-Options: nosniff
- Header always set X-Permitted-Cross-Domain-Policies: "master-only"
- <VirtualHost *:443>
- ServerName www.otherdomain.org
- DocumentRoot /var/www/otherdomain/
- ServerAdmin webmaster@xxxxxxxx.com
- SSLEngine on
- SSLCertificateFile "/etc/apache2/ssl/crt/www.otherdomain.org.crt"
- SSLCertificateChainFile "/etc/apache2/ssl/crt/IntermediateCA.otherdomain.crt"
- SSLCertificateKeyFile "/etc/apache2/ssl/www.otherdomain.org.key"
- DirectoryIndex index.html index.htm index.php
- <FilesMatch "^wp-login.php$|^wp-admin/.*">
- AuthName "Login Login"
- AuthType Basic
- AuthUserFile /etc/apache2/.htpasswd
- Require valid-user
- </FilesMatch>
- </VirtualHost>
- </IfModule>
- <VirtualHost *:80>
- ServerName www.otherdomain.org
- ServerAlias www4.otherdomain.org otherdomain.org
- ServerAdmin webmaster@otherdomain.org
- DocumentRoot /var/www/otherdomain/
- Redirect 301 "/" "https://www.otherdomain.org/"
- </VirtualHost>
- <IfModule ssl_module>
- SetEnvIf HTTPS https HTTPS=on
- Header always set Strict-Transport-Security "max-age=63072000" env=HTTPS
- Header always set Content-Security-Policy: upgrade-insecure-requests env=HTTPS
- Header always set X-XSS-Protection: "1; mode=block"
- Header always set X-Frame-Options: sameorigin
- Header always set X-Content-Type-Options: nosniff
- Header always set X-Permitted-Cross-Domain-Policies: "master-only"
- <VirtualHost *:443>
- ServerName www.otherdomain.org
- ServerAlias otherdomain.org
- DocumentRoot /var/www/otherdomain/
- ServerAdmin webmaster@societyhq.com
- SSLEngine on
- SSLCertificateFile "/etc/apache2/ssl/crt/www.otherdomain.org.crt"
- SSLCertificateChainFile "/etc/apache2/ssl/crt/IntermediateCA.otherdomain.crt"
- SSLCertificateKeyFile "/etc/apache2/ssl/www.otherdomain.org.key"
- DirectoryIndex index.html index.htm index.php
- <FilesMatch "^wp-login.php$|^wp-admin/.*">
- AuthName "Login Login"
- AuthType Basic
- AuthUserFile /etc/apache2/.htpasswd
- Require valid-user
- </FilesMatch>
- </VirtualHost>
- </IfModule>
Add Comment
Please, Sign In to add comment