-
-
Save NathanWailes/32621a6bd599afdacaed1521a2d2ef7c to your computer and use it in GitHub Desktop.
rhymecraft.conf with Confluence and SSL working
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WSGIDaemonProcess rhymecraft.guru processes=2 threads=15 display-name=%{GROUP} | |
WSGIProcessGroup rhymecraft.guru | |
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
ServerName www.rhymecraft.guru | |
# Redirect /wiki https://rhymecraft.guru/wiki | |
# Redirect /blog https://rhymecraft.guru/blog | |
</VirtualHost> | |
NameVirtualHost *:443 | |
<VirtualHost *:443> | |
ServerName www.rhymecraft.guru | |
ServerAlias www.rhymecraft.guru | |
ServerAdmin nathan.wailes@gmail.com | |
DocumentRoot /var/www/html/.htaccess | |
ProxyRequests Off | |
<Proxy *> | |
Require all granted | |
</Proxy> | |
ProxyPass /synchrony http://localhost:8091/synchrony | |
<Location /synchrony> | |
Require all granted | |
RewriteEngine on | |
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC] | |
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC] | |
RewriteRule .* ws://127.0.0.1:8091%{REQUEST_URI} [P] | |
</Location> | |
ProxyRequests Off | |
ProxyPreserveHost On | |
<Proxy *> | |
Require all granted | |
</Proxy> | |
SSLEngine On | |
SSLCertificateFile /etc/letsencrypt/live/rhymecraft.guru/fullchain.pem | |
SSLCertificateKeyFile /etc/letsencrypt/live/rhymecraft.guru/privkey.pem | |
ProxyPass /wiki http://localhost:8090/wiki | |
ProxyPassReverse /wiki http://localhost:8090/wiki | |
<Location /> | |
Require all granted | |
</Location> | |
Alias /blog /var/www/html | |
WSGIScriptAlias / /var/www/rhymecraft/server/rhymecraft.wsgi | |
DocumentRoot /var/www/rhymecraft/server | |
Alias /robots.txt /var/www/rhymecraft/server/robots.txt | |
Alias /favicon.ico /var/www/rhymecraft/server/robots.txt | |
Alias /static /var/www/rhymecraft/server/static | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
LogLevel warn | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment