Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Default Virtual Host configuration.
- <IfVersion < 2.3 >
- NameVirtualHost *:80
- NameVirtualHost *:443
- </IfVersion>
- <VirtualHost _default_:80>
- DocumentRoot "/opt/bitnami/apache2/htdocs"
- # BEGIN: Support domain renewal when using mod_proxy without Location
- <IfModule mod_proxy.c>
- ProxyPass /.well-known !
- </IfModule>
- # END: Support domain renewal when using mod_proxy without Location
- # BEGIN: Enable HTTP to HTTPS redirection
- RewriteEngine On
- RewriteCond %{HTTPS} !=on
- RewriteCond %{HTTP_HOST} !^localhost
- RewriteCond %{HTTP_HOST} !^[0-9]+.[0-9]+.[0-9]+.[0-9]+(:[0-9]+)?$
- RewriteCond %{REQUEST_URI} !^/\.well-known
- RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
- # END: Enable HTTP to HTTPS redirection
- # BEGIN: Enable non-www to www redirection
- RewriteCond %{HTTP_HOST} !^www\. [NC]
- RewriteCond %{HTTP_HOST} !^localhost
- RewriteCond %{HTTP_HOST} !^[0-9]+.[0-9]+.[0-9]+.[0-9]+(:[0-9]+)?$
- RewriteCond %{REQUEST_URI} !^/\.well-known
- RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=permanent,L]
- # END: Enable non-www to www redirection
- <Directory "/opt/bitnami/apache2/htdocs">
- Options Indexes FollowSymLinks
- AllowOverride All
- <IfVersion < 2.3 >
- Order allow,deny
- Allow from all
- </IfVersion>
- <IfVersion >= 2.3 >
- Require all granted
- </IfVersion>
- </Directory>
- # Error Documents
- ErrorDocument 503 /503.html
- # Bitnami applications installed with a prefix URL (default)
- Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf"
- # BEGIN: Support domain renewal when using mod_proxy within Location
- <Location /.well-known>
- <IfModule mod_proxy.c>
- ProxyPass !
- </IfModule>
- </Location>
- # END: Support domain renewal when using mod_proxy within Location
- </VirtualHost>
- # Default SSL Virtual Host configuration.
- <IfModule !ssl_module>
- LoadModule ssl_module modules/mod_ssl.so
- </IfModule>
- Listen 443
- SSLProtocol all -SSLv2 -SSLv3
- SSLHonorCipherOrder on
- SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !EDH !RC4"
- SSLPassPhraseDialog builtin
- SSLSessionCache "shmcb:/opt/bitnami/apache2/logs/ssl_scache(512000)"
- SSLSessionCacheTimeout 300
- <VirtualHost _default_:443>
- DocumentRoot "/opt/bitnami/apache2/htdocs"
- SSLEngine on
- SSLCertificateFile "/opt/bitnami/apache2/conf/_my_domain_name_.com.crt"
- SSLCertificateKeyFile "/opt/bitnami/apache2/conf/_my_domain_name_.com.key"
- # BEGIN: Support domain renewal when using mod_proxy without Location
- <IfModule mod_proxy.c>
- ProxyPass /.well-known !
- </IfModule>
- # END: Support domain renewal when using mod_proxy without Location
- # BEGIN: Enable non-www to www redirection
- RewriteEngine On
- RewriteCond %{HTTP_HOST} !^www\. [NC]
- RewriteCond %{HTTP_HOST} !^localhost
- RewriteCond %{HTTP_HOST} !^[0-9]+.[0-9]+.[0-9]+.[0-9]+(:[0-9]+)?$
- RewriteCond %{REQUEST_URI} !^/\.well-known
- RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=permanent,L]
- # END: Enable non-www to www redirection
- <Directory "/opt/bitnami/apache2/htdocs">
- Options Indexes FollowSymLinks
- AllowOverride All
- <IfVersion < 2.3 >
- Order allow,deny
- Allow from all
- </IfVersion>
- <IfVersion >= 2.3 >
- Require all granted
- </IfVersion>
- </Directory>
- # Error Documents
- ErrorDocument 503 /503.html
- # Bitnami applications installed with a prefix URL (default)
- Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf"
- # BEGIN: Support domain renewal when using mod_proxy within Location
- <Location /.well-known>
- <IfModule mod_proxy.c>
- ProxyPass !
- </IfModule>
- </Location>
- # END: Support domain renewal when using mod_proxy within Location
- </VirtualHost>
- # Bitnami applications that uses virtual host configuration
- Include "/opt/bitnami/apache2/conf/bitnami/bitnami-apps-vhosts.conf"
Add Comment
Please, Sign In to add comment