@q I'm using
location ~ ^/system/(.*) {
rewrite ^ https://lowondisk.space/mastodon/$1;
}
I thought it would just replace part of the URL but it redirects all requests to https://lowondisk.space/mastodon
@q Looks like it's not working. I think that some part of the default Mastodon Nginx config might be conflicting with it.
@matrix I’m not familiar with their default config, but I guess you’ll have to back it up, try editing it and pray :/
@q Looks like I found a solution
https://github.com/cybrespace/cybrespace-meta/blob/master/s3.md#follow-up
@matrix Yeah, try doing a proxy_pass instead. That’s how I’m able to route glowers.club on my VPS to my home server. https://stackoverflow.com/questions/63877741/nginx-proxy-pass-with-rewrite-and-regex