2023-04-02 13:26:19 +00:00
|
|
|
<VirtualHost *:80>
|
|
|
|
ServerName moshingmammut.phlaym.net
|
|
|
|
|
|
|
|
ProxyPreserveHost On
|
|
|
|
ProxyPass / http://localhost:3000/
|
|
|
|
ProxyPassReverse / http://localhost:3000/
|
|
|
|
|
|
|
|
ErrorLog /var/log/apache2/error.log
|
|
|
|
CustomLog /var/log/apache2/access.log combined
|
|
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
<IfModule mod_ssl.c>
|
|
|
|
<VirtualHost *:443>
|
|
|
|
ServerName moshingmammut.phlaym.net
|
|
|
|
|
|
|
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
|
|
|
|
2023-06-20 13:45:09 +00:00
|
|
|
DocumentRoot /home/moshing-mammut/app/
|
|
|
|
|
|
|
|
ProxyPass /avatars/ !
|
|
|
|
ProxyPass /thumbnails/ !
|
|
|
|
Alias /avatars/ /home/moshing-mammut/app/avatars/
|
|
|
|
Alias /thumbnails/ /home/moshing-mammut/app/thumbnails/
|
|
|
|
|
|
|
|
<Directory "/home/moshing-mammut/app/avatars/">
|
|
|
|
Require all granted
|
|
|
|
Header set Cache-Control "public,max-age=31536000,immutable"
|
|
|
|
</Directory>
|
|
|
|
|
|
|
|
<Directory "/home/moshing-mammut/app/thumbnails/">
|
|
|
|
Require all granted
|
|
|
|
Header set Cache-Control "public,max-age=31536000,immutable"
|
|
|
|
</Directory>
|
|
|
|
|
2023-04-02 13:26:19 +00:00
|
|
|
ProxyPass / http://localhost:3000/
|
|
|
|
ProxyPassReverse / http://localhost:3000/
|
|
|
|
|
|
|
|
SSLCertificateFile /path/to/your/fullchain.pem
|
|
|
|
SSLCertificateKeyFile /path/to/your/privkey.pem
|
|
|
|
</VirtualHost>
|
|
|
|
</IfModule>
|