Advertisement
Guest User

Untitled

a guest
Nov 27th, 2018
733
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. <IfModule mod_ssl.c>
  2. <VirtualHost *:443>
  3. # The ServerName directive sets the request scheme, hostname and port that
  4. # the server uses to identify itself. This is used when creating
  5. # redirection URLs. In the context of virtual hosts, the ServerName
  6. # specifies what hostname must appear in the request's Host: header to
  7. # match this virtual host. For the default virtual host (this file) this
  8. # value is not decisive as it is used as a last resort host regardless.
  9. # However, you must set it for any further virtual host explicitly.
  10.  
  11. Protocols h2 http/1.1
  12. ServerName www.michaelharwinlaw.com
  13. ServerAlias michaelharwinlaw.com
  14. ServerAdmin [email protected]
  15. DocumentRoot /var/www/html/
  16.  
  17. <Directory /var/www/html>
  18. Options Indexes FollowSymLinks MultiViews
  19. AllowOverride All
  20. Order allow,deny
  21. allow from all
  22. </Directory>
  23.  
  24. SSLProxyEngine on
  25. ProxyPass /wp-admin/ !
  26. ProxyPass /wp-login/ !
  27. ProxyPass /wp-json/ !
  28. ProxyPass /wp-content/plugins/ !
  29. ProxyPass /wp-includes/ !
  30. ProxyPassMatch .*\.xml !
  31. ProxyPass / https://stag.michaelharwinlaw.com/
  32. ProxyPassReverse / https://stag.michaelharwinlaw.com/
  33.  
  34. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  35. # error, crit, alert, emerg.
  36. # It is also possible to configure the loglevel for particular
  37. # modules, e.g.
  38. #LogLevel info ssl:warn
  39.  
  40. ErrorLog ${APACHE_LOG_DIR}/mc-error.log
  41. CustomLog ${APACHE_LOG_DIR}/mc-access.log combined
  42.  
  43. # For most configuration files from conf-available/, which are
  44. # enabled or disabled at a global level, it is possible to
  45. # include a line for only one particular virtual host. For example the
  46. # following line enables the CGI configuration for this host only
  47. # after it has been globally disabled with "a2disconf".
  48. #Include conf-available/serve-cgi-bin.conf
  49.  
  50. Include /var/www/html/wp-content/uploads/wpseo-redirects/.redirects
  51.  
  52. SSLCertificateFile /etc/letsencrypt/live/www.michaelharwinlaw.com/fullchain.pem
  53. SSLCertificateKeyFile /etc/letsencrypt/live/www.michaelharwinlaw.com/privkey.pem
  54. Include /etc/letsencrypt/options-ssl-apache.conf
  55. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement