I’ve got sympl installed and serving various websites. I also want to run GoToSocial, so I want to set up an Apache reverse proxy. I’ve set up GoToSocial and a reverse proxy virtual site, but when I go to the GTS URL I get the default website.
Any ideas? I’m not sure if this is an issue with sympl, my reverse proxy setup, or GTS.
Can you paste the reverse proxy configuration here along with the filename you’re using for it? It sounds like Apache isn’t getting to that before its picked up by the default site configuration.
The filename is /etc/apache2/sites-available/gts.authorhelp.uk.conf and there’s a symlink: /etc/apache2/sites-enabled/gts.authorhelp.uk.conf -> /etc/apache2/sites-available/gts.authorhelp.uk.conf
This is the file contents:
MDomain gts.authorhelp.uk auto
MDCertificateAgreement accepted
<VirtualHost *:80 >
ServerName gts.authorhelp.uk
ServerAdmin contact@authorhelp.uk
</VirtualHost>
<VirtualHost *:443>
ServerName gts.authorhelp.uk
ServerAdmin contact@authorhelp.uk
SSLEngine On
ProxyPreserveHost On
# set to 127.0.0.1 instead of localhost to work around https://stackoverflow.com/a/52550758
ProxyPass / http://127.0.0.1:8080/ upgrade=websocket
ProxyPassReverse / http://127.0.0.1:8080/
RequestHeader set "X-Forwarded-Proto" expr=https
</VirtualHost>