Does anybody happen to know of a guide that will tell me how to get , when receiving requests on port 443 for a certain directory and subdirectories (e.g. /caldav/*), to proxy it to the server listening on port 80?

This needs to coexist with nginx proxying all other requests NOT for that path and subdirectories to a different port (Pleroma, actually).

@deutrino You can't forward from 443 -> 80. It breaks SSL. You *can* forward from 80 -> 443, though:

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
return 301 https://$host$request_uri;

@deutrino If you're talking about proxying to another server *behind* the nginx instance (i.e. nginx terminates SSL and the other server just hosts the actual service)...well that's easy and any basic proxy examples should work.


@john Yeah, the possible wrinkle is that I already have it proxying traffic for Pleroma, so it needs to be only proxying stuff aimed at (for example) /gitea and below, and let everything else be handled by the other config.

Sign in to participate in the conversation
Mastodon is one of the instance in the fediverse. We're an open-minded generalistic instance. Learn more here!