It is working. Thanks! For the record: I moved error_page 497 = @https; to server section.by Quincy - Nginx Mailing List - English
I have the same problem. I can't redirect http to https. Here is my config: server { listen 2121; server_name XXXXX; ssl on; ssl_certificate XXt; ssl_certificate_key XX; #server_name _; server_name_in_redirect off; port_in_redirect off; root XXX; location / { index index.php; error_page 404 = @mediawiki; error_page 497 = @https; #error_pageby Quincy - Nginx Mailing List - English
The problem was in mediawiki I think. I changed both ports - now they are the same. And everything works from the internet. Thanks.by Quincy - Nginx Mailing List - English
Hi I have two machines. One is server with nginx and the other is NAT. On server I've got mediawiki on port 2222. I forwared port 55555 on my nat to server:2222. I have one big problem. When I try to open NAT_IP:55555 in my browser it redirects me to http://:2222. What's wrong with my config? Here is my virtualhost config file: 1 server { 2 listen 2222; 3 server_name MYNAMEl;by Quincy - Nginx Mailing List - English