Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reverse proxy for Apache? #111

Open
gerroon opened this issue Nov 13, 2023 · 1 comment
Open

Reverse proxy for Apache? #111

gerroon opened this issue Nov 13, 2023 · 1 comment

Comments

@gerroon
Copy link

gerroon commented Nov 13, 2023

Hi

Does anyone have a working reverse proxy setup for Apache2 that will also work with the Subsonic API? Do you mind sharing your config?

@guss77
Copy link

guss77 commented Aug 17, 2024

I'm running the Ampache service using the docker configuration, with their port mapped to 127.0.0.1:4040 (Subsonic legacy) and then I have this Apache site configuration, with the mod_md module for Let's Encrypt certificates:

<MDomain music.geek.co.il>
        MDRequireHttps permanent
</MDomain>

<VirtualHost *:80>
        ServerName music.geek.co.il
        DocumentRoot /var/www/html
</VirtualHost>

<VirtualHost *:443>
        ServerName music.geek.co.il
        ServerAdmin [email protected]
        SSLEngine on
        DocumentRoot /var/www/html

        ProxyPreserveHost On
        ProxyRequests Off
        ProxyVia On

        ProxyPass / http://127.0.0.1:4040/
        ProxyPassReverse / http://127.0.0.1:4040/
</VirtualHost>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants