Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerAdmin [email protected]
- Servername redmine.xxx.cz
- DocumentRoot /var/www/html/
- <Location /redmine>
- RailsEnv production
- RackBaseURI /redmine
- Options -MultiViews
- </Location>
- RewriteEngine on
- RewriteCond %{SERVER_NAME} =redmine.xxx.cz
- RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
- </VirtualHost>
- <VirtualHost *:443>
- ServerAdmin [email protected]
- Servername redmine.xxx.cz
- DocumentRoot /var/www/html/
- <Location /redmine>
- RailsEnv production
- RackBaseURI /redmine
- Options -MultiViews
- </Location>
- SSLEngine on
- SSLCertificateFile /etc/letsencrypt/live/redmine.xxx.cz/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/redmine.xxxx.cz/privkey.pem
- Include /etc/letsencrypt/options-ssl-apache.conf
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement