| Server IP : 85.214.239.14 / Your IP : 216.73.216.108 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/cwd/proc/3/root/var/lib/letsencrypt/backups/1690484236.5200613/ |
Upload File : |
# Apache .conf for reverse proxy of Foundry VTT.
# Uses LetsEncrypt/certbot to manage SSL certificates, which needs to be
# configured separately (https://certbot.eff.org/instructions)
# Note, requires mod_proxy mod_proxy_http mod_proxy_wstunnel as well as usual
# modules for SSL etc.
Listen 9000
<VirtualHost *:9000>
ServerAdmin webmaster@localhost
ServerName fictionalmaps.com
ErrorLog "/var/log/apache2/fictionalmaps.com.error_log"
CustomLog "/var/log/apache2/fictionalmaps.com.access_log" common
LogLevel error
# Uncomment this SSLProxyEngine line if Foundry running in SSL mode
#SSLProxyEngine on
SSLCertificateKeyFile "/etc/letsencrypt/live/fictionalmaps.com/privkey.pem"
SSLCertificateFile "/etc/letsencrypt/live/fictionalmaps.com/fullchain.pem"
Include /etc/letsencrypt/options-ssl-apache.conf
ProxyPreserveHost On
# Change localhost:30000 if your Foundry instance is running on a
# different server or port.
# Additionally, if you are running Foundry with SSL enabled, change
# any ws:// to wss:// and any http:// to https://
# If you have Foundry configured to use a routeprefix, then no modifications
# should be needed to anything here, it should just work.
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
# The following rewrite will modify websocket requests to pass them properly
RewriteEngine on
RewriteCond %{HTTP:Upgrade} websocket [NC]
RewriteCond %{HTTP:Connection} upgrade [NC]
RewriteRule .* "ws://localhost:8080%{REQUEST_URI}" [P]
# ProxyPass "/socket.io/" "ws://localhost:8080/socket.io/"
</VirtualHost>