chainsol

Untitled

Feb 19th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:80>
  2.         ServerName ainneve.evennia.com
  3.         ServerAlias ainneve.com
  4.         Redirect / https://ainneve.evennia.com
  5. </VirtualHost>
  6.  
  7. <VirtualHost *:443>
  8.         ServerName ainneve.evennia.com
  9.  
  10.         ProxyPass /ws ws://localhost:4002/
  11.         ProxyPassReverse /ws ws://localhost:4002/
  12.         ProxyPass / http://localhost:4001/
  13.         ProxyPassReverse / http://localhost:4001/
  14.  
  15.         ServerAdmin webmaster@localhost
  16.  
  17.         # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  18.         # error, crit, alert, emerg.
  19.         # It is also possible to configure the loglevel for particular
  20.         # modules, e.g.
  21.         #LogLevel info ssl:warn
  22.  
  23.         ErrorLog ${APACHE_LOG_DIR}/error.log
  24.         CustomLog ${APACHE_LOG_DIR}/access.log combined
  25.  
  26.         # For most configuration files from conf-available/, which are
  27.         # enabled or disabled at a global level, it is possible to
  28.         # include a line for only one particular virtual host. For example the
  29.         # following line enables the CGI configuration for this host only
  30.         # after it has been globally disabled with "a2disconf".
  31.         #Include conf-available/serve-cgi-bin.conf
  32.         SSLCertificateFile /etc/letsencrypt/live/ainneve.evennia.com/fullchain.pem
  33.         SSLCertificateKeyFile /etc/letsencrypt/live/ainneve.evennia.com/privkey.pem
  34.         Include /etc/letsencrypt/options-ssl-apache.conf
  35.  
  36. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment