Score:0

NGINX - redirect userdir to another domain

fj flag

I had an apache virtualhost config that redirects "http://host.domain.com/~userdir" to another host:

RewriteRule ^/~(.+) http://anotherhost.domain.com/~$1 [R,L]

But I'm having trouble to migrate this config to Nginx. Anyone could help me please?

djdomi avatar
za flag
Questions seeking installation, configuration or diagnostic help must include the desired end state, the specific problem or error, sufficient information about the configuration and environment to reproduce it, and attempted solutions. Questions without a clear problem statement are not useful to other readers and are unlikely to get good answers
sv flag
Welcome to ServerFault. What have you tried so far?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.