Guest User

Untitled

a guest
Apr 26th, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. Listen 443
  2.  
  3. <VirtualHost *:443>
  4. ServerName asp.example.com
  5. ServerAlias *.asp.example.com
  6.  
  7. ProxyPreserveHost Off
  8. ProxyPass / http://127.0.0.1:5000/
  9. ProxyPassReverse / http://127.0.0.1:5000/
  10.  
  11. SSLEngine on
  12.  
  13. SSLCertificateFile /etc/ssl/certs/example.com.pem
  14. SSLCertificateKeyFile /etc/ssl/private/example.com.key
  15. ErrorLog ${APACHE_LOG_DIR}/aspapp-error.log
  16. CustomLog ${APACHE_LOG_DIR}/aspapp-access.log common
  17. </VirtualHost>
  18.  
  19.  
  20. <VirtualHost *:443>
  21. # The ServerName directive sets the request scheme, hostname and port that
  22. # the server uses to identify itself. This is used when creating
  23. # redirection URLs. In the context of virtual hosts, the ServerName
  24. # specifies what hostname must appear in the request's Host: header to
  25. # match this virtual host. For the default virtual host (this file) this
  26. # value is not decisive as it is used as a last resort host regardless.
  27. # However, you must set it for any further virtual host explicitly.
  28.  
  29.  
  30. SSLEngine on
  31.  
  32. SSLCertificateFile /etc/ssl/certs/example.com.pem
  33. SSLCertificateKeyFile /etc/ssl/private/example.com.key
  34.  
  35. ServerName wordpress.example.com
  36.  
  37. ServerAdmin webmaster@example.com
  38. DocumentRoot /var/www/html
  39.  
  40. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  41. # error, crit, alert, emerg.
  42. # It is also possible to configure the loglevel for particular
  43. # modules, e.g.
  44. #LogLevel info ssl:warn
  45.  
  46. ErrorLog ${APACHE_LOG_DIR}/error.log
  47. CustomLog ${APACHE_LOG_DIR}/access.log combined
  48.  
  49. # For most configuration files from conf-available/, which are
  50. # enabled or disabled at a global level, it is possible to
  51. # include a line for only one particular virtual host. For example the
  52. # following line enables the CGI configuration for this host only
  53. # after it has been globally disabled with "a2disconf".
  54. #Include conf-available/serve-cgi-bin.conf
  55. </VirtualHost>
Add Comment
Please, Sign In to add comment