Score:0

Nginx subdomain + subfolder to /

dk flag

i want to redirect a subdomain to a suborder of my apache server if i go over the domain

webmail.mydomain.com/plugins/xcalendar/caldav/index.php/calendars/oahfvkpdb2/oxntxubf1d/

it works but if i go to the domain

caldav.mydomain.com/calendars/oahfvkpdb2/oxntxubf1d/

it does not work I have made the following configuration in nginx proxy manager

location ~/(.*)$ {
    proxy_set_header X-Real-IP  $remote_addr;
    proxy_set_header X-Forwarded-For $remote_addr;
    proxy_set_header Host $host;
    proxy_pass http://192.168.2.16:80/plugins/xcalendar/caldav/index.php/$1;
}
Lex Li avatar
vn flag
Did you try to use `proxy_set_header Host "webmail.mydomain.com";` instead?
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.