Advertisement
fweng322

proxyserver-limesurvey.config

Apr 13th, 2020
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. <VirtualHost *:80>
  2. # The ServerName directive sets the request scheme, hostname and port that
  3. # the server uses to identify itself. This is used when creating
  4. # redirection URLs. In the context of virtual hosts, the ServerName
  5. # specifies what hostname must appear in the request's Host: header to
  6. # match this virtual host. For the default virtual host (this file) this
  7. # value is not decisive as it is used as a last resort host regardless.
  8. # However, you must set it for any further virtual host explicitly.
  9. ServerName limesurvey.slat.org
  10.  
  11. ServerAdmin franklin@slat.org
  12. # DocumentRoot /opt/limesurvey/limesurvey/
  13.  
  14. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  15. # error, crit, alert, emerg.
  16. # It is also possible to configure the loglevel for particular
  17. # modules, e.g.
  18. #LogLevel info ssl:warn
  19.  
  20. Redirect / https://limesurvey.slat.org/
  21.  
  22. ErrorLog ${APACHE_LOG_DIR}/limesurvey-error.log
  23. CustomLog ${APACHE_LOG_DIR}/access.log combined
  24.  
  25. # For most configuration files from conf-available/, which are
  26. # enabled or disabled at a global level, it is possible to
  27. # include a line for only one particular virtual host. For example the
  28. # following line enables the CGI configuration for this host only
  29. # after it has been globally disabled with "a2disconf".
  30. #Include conf-available/serve-cgi-bin.conf
  31. </VirtualHost>
  32.  
  33. <IfModule mod_ssl.c>
  34.  
  35. <VirtualHost *:443>
  36. ServerName limesurvey.slat.org
  37. ServerAdmin franklin@slat.org
  38.  
  39. # DocumentRoot /opt/limesurvey/limesurvey
  40.  
  41. ErrorLog ${APACHE_LOG_DIR}/limesurvey-error.log
  42. CustomLog ${APACHE_LOG_DIR}/access.log combined
  43.  
  44. SSLEngine on
  45.  
  46. SSLCertificateFile /etc/letsencrypt/live/limesurvey.slat.org/cert.pem
  47. SSLCertificateKeyFile /etc/letsencrypt/live/limesurvey.slat.org/privkey.pem
  48. SSLCertificateChainFile /etc/letsencrypt/live/limesurvey.slat.org/chain.pem
  49.  
  50. <FilesMatch "\.(cgi|shtml|phtml|php)$">
  51. SSLOptions +StdEnvVars
  52. </FilesMatch>
  53. <Directory /usr/lib/cgi-bin>
  54. SSLOptions +StdEnvVars
  55. </Directory>
  56. BrowserMatch "MSIE [2-6]" \
  57. nokeepalive ssl-unclean-shutdown \
  58. downgrade-1.0 force-response-1.0
  59. BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
  60.  
  61. ProxyRequests off
  62. ProxyPass "/" "http://limesurvey57.slat.org/"
  63. ProxyPassReverse "/" "http://limesurvey57.slat.org/"
  64.  
  65. </VirtualHost>
  66. </IfModule>
  67.  
  68. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement