Other question : how can I modify my conf file in order to redirect https://www.domain.com to https://domain.com ? Thanks in advance for your help. Gillesby gperrot - How to...
Hi, I finally corrected my conf file by the following lines and it works. No way to use only the certificate for domain.com for domain.fr HTTPs requests since redirection ? Thanks in advance for your help. Gilles. ====================== server { listen 212.129.28.201:80; server_name www.domain.com domain.com www.domain.fr domain.fr ; return 301 https://easycrypt.io$reby gperrot - How to...
Hello, I have a nginx server working for https://www.domain.com with certificates for domain.com. server { server_name domain.com www.domain.com; listen <IP>:443 ssl; ssl_certificate <certificate> ssl_certificate_key <certificate_key> ... } Now, I would like to redirect all request to https://www.domain.fr to https://www.domain.com but I don't want toby gperrot - How to...
Hello Igor, Thanks a lot for your complete answer. So if I well understood, no way to make a nginx redirection based on #anchor passed in URL ? No workaround possible ? We have a code including help link which contains anchors, code we can change easily since many users have it. Thanks in advance for your help. Gillesby gperrot - Nginx Mailing List - English
Thanks a lot for all your answers ! Since I have the case below with anchor (fragment-ID in URL to map to one specific action in my doc.map : /Doc.html#case1 https://domain2.com/action1; /Doc.html#case2 https://domain2.com/action2; /Doc.html https://domain2.com/action3; How can I do this kind of mapping with Nginx ? For the moment, my conf is : map $uri $new_uri { include /etcby gperrot - Nginx Mailing List - English
Hello, I am using nginx/1.16.1 on CentOS Linux 7. I am using map directive for managing a large number of redirects from one server to another server : map $request_uri $new_uri { include /etc/nginx/conf/redirect.map; include /etc/nginx/conf/documentation.map; } In /etc/nginx/conf/documentation.map, I have 1200 redirections like those below (the first one works, the second oneby gperrot - Nginx Mailing List - English