Advertisement
Guest User

domain.com.conf-BEFORE-CERTBOT

a guest
Oct 14th, 2022
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerAdmin [email protected]
  3. ServerName subdomain.domain.com
  4. DocumentRoot /var/www/html/subdomain.domain.com/
  5. ErrorLog ${APACHE_LOG_DIR}/error.log
  6. CustomLog ${APACHE_LOG_DIR}/access.log combined
  7. Redirect permanent / https://subdomain.domain.com
  8. RewriteEngine on
  9. RewriteCond %{SERVER_NAME} =website.nasberry.dk
  10. RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
  11. </VirtualHost>
  12.  
  13. <VirtualHost *:9010>
  14. ServerAdmin [email protected]
  15. ServerName subdomain.domain.com
  16. DocumentRoot /var/www/html/subdomain.domain.com/
  17. ErrorLog ${APACHE_LOG_DIR}/error.log
  18. CustomLog ${APACHE_LOG_DIR}/access.log combined
  19. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement