ponce

virtualhost with ssl config

Oct 16th, 2020
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <VirtualHost hpccenter.sns.it:80>
  2. ServerName hpccenter.sns.it
  3. Redirect / https://hpccenter.sns.it
  4. </VirtualHost>
  5. <VirtualHost hpccenter.sns.it:443>
  6. ServerAdmin admin@sns.it
  7. DocumentRoot "/var/www/html"
  8. <Directory "/var/www/html">
  9. Options FollowSymLinks
  10. AllowOverride All
  11. Require all granted
  12. </Directory>
  13. ServerName hpccenter.sns.it
  14. SSLEngine on
  15. SSLCertificateFile /etc/certs/hpccenter.sns.it.cer
  16. SSLCertificateKeyFile /etc/certs/hpccenter.sns.it.key
  17. LogLevel warn
  18. ErrorLog "/var/log/httpd/hpccenter.sns.it-error_log"
  19. CustomLog "/var/log/httpd/hpccenter.sns.it-access_log" common
  20. </VirtualHost>
  21.  
Add Comment
Please, Sign In to add comment