daily pastebin goal
80%
SHARE
TWEET

Untitled

a guest Mar 17th, 2018 259 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost mydomain.com:443>
  2.         ServerName mydomain.com
  3.         ServerAlias www.mydomain.com
  4.         ServerAdmin admin@mydomain.com
  5.  
  6.         DocumentRoot /var/www/html
  7.  
  8.         SSLEngine on
  9.         SSLProtocol all -SSLv2
  10.         SSLCertificateFile /opt/ssl/mydomain_com.crt
  11.         SSLCertificateKeyFile /opt/ssl/945308.key
  12.         SSLCertificateChainFile /opt/ssl/Big_cert.bundle
  13.  
  14.         ProxyPreserveHost On
  15.         ProxyPass / http://127.0.0.1
  16.         ProxyPassReverse / http://127.0.0.1
  17.  
  18.         #LogLevel info ssl:warn
  19.         #ErrorLog ${APACHE_LOG_DIR}/error.log
  20.         #CustomLog ${APACHE_LOG_DIR}/access.log combined
  21. </VirtualHost>
  22.  
  23.  
  24. <VirtualHost mydomain.com:80>
  25.         ServerName mydomain80.com
  26.         ServerAlias www.mydomain.com
  27.         ServerAdmin admin@mydomain.com
  28.  
  29.         DocumentRoot /var/www/html
  30.  
  31.         RewriteEngine On
  32.         RewriteCond %{HTTPS} off
  33.         RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
  34. </VirtualHost>
  35.  
  36. <VirtualHost mydomain.com:443>
  37.         ServerName mydomain.com
  38.         ServerAlias www.mydomain.com
  39.         ServerAdmin admin@mydomain.com
  40.  
  41.         SSLEngine on
  42.         SSLProtocol all -SSLv2
  43.         SSLCertificateFile /opt/ssl/mydomain_com.crt
  44.         SSLCertificateKeyFile /opt/ssl/945308.key
  45.         SSLCertificateChainFile /opt/ssl/Big_cert.bundle
  46.  
  47.         ProxyPreserveHost On
  48.         ProxyPass /parse http://127.0.0.1:1337/
  49.         ProxyPassReverse /parse http://127.0.0.1:1337/
  50. </VirtualHost>
  51.  
  52. <VirtualHost mydomain.com:80>
  53.         ServerName mydomain80.com
  54.         ServerAlias www.mydomain.com
  55.         ServerAdmin admin@mydomain.com
  56.  
  57.         ProxyPreserveHost On
  58.         ProxyPass /parse http://127.0.0.1:1337/
  59.         ProxyPassReverse /parse http://127.0.0.1:1337/
  60. </VirtualHost>
  61.  
  62. <VirtualHost admin.mydomain.com:443>
  63.         ServerName admin.mydomain.com
  64.         ServerAlias www.admin.mydomain.com
  65.         ServerAdmin admin@mydomain.com
  66.  
  67.         SSLEngine on
  68.         SSLProtocol all -SSLv2
  69.         SSLCertificateFile /opt/ssl/mydomain_com.crt
  70.         SSLCertificateKeyFile /opt/ssl/945308.key
  71.         SSLCertificateChainFile /opt/ssl/Big_cert.bundle
  72.  
  73.         ProxyPreserveHost On
  74.         ProxyPass / http://127.0.0.1:4040/
  75.         ProxyPassReverse / http://127.0.0.1:4040/
  76. </VirtualHost>
  77.  
  78.  
  79. <VirtualHost admin.mydomain.com:80>
  80.         ServerName admin.mydomain80.com
  81.         ServerAlias www.admin.mydomain.com
  82.         ServerAdmin admin@mydomain.com
  83.  
  84.         ProxyPreserveHost On
  85.         ProxyPass / http://127.0.0.1:4040/
  86.         ProxyPassReverse / http://127.0.0.1:4040/
  87. </VirtualHost>
  88.  
  89. # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top