Apache reverse proxy for GoToSocial

Problem Description

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.

Any Error Messages

I’m not seeing any errors :confused:

Environment

  • Sympl Version: 12
  • Debian Version: 12.9
  • Hardware Type: Intel Xeon E3-1275v5
  • Hosted With: Hetzner

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>

I’ve got it working, after reading this StackExchange post.

I had to specify the IP address in the VirtualHost lines:

<VirtualHost 1.2.3.4:443 [2a1:4f2:193:4c4::2]:443>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.