Score:0

redirect to http depending on the condition

mx flag
Sam

I use nginx

Assume that url hello.test.example.com, hello example of dynamically subdomain, how can i redirect to hello.test2.example.com when hello file existing in specific directory path

server_name ~^(?<subdomain>[^.]+)\.test\.example\.com$;
        set $m_file /home/files/$subdomain;
        if (-f $m_file) {
               rewrite ^/(.*)$ http://$subdomain.test2.example.com/;
        }

this condition working when the url (hello.test.example.com) but when the url (hello.test.example.com\en) working but not every time ! why ?

djdomi avatar
za flag
for about how many subdomain do we literally speak about
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.