Welcome! Log In Create A New Profile

Advanced

some problems with http:// -> https:// & phpMyAdmin

Gregory Edigarov
November 16, 2015 12:00PM
server {
listen 80;
server_name site.com www.site.com;
location / {
return 301 https://site.com$request_uri;
}
}

server {
listen 443;
server_name site.com;

[certificate setup skipped]
# phpMyAdmin
location /pma { proxy_set_header Host $http_host;
proxy_set_header X-REQUEST_URI $request_uri;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:8080; #Apache
listens here
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 32k;
proxy_buffers 8 16k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
}
# other stuff skipped, as it works correctly

}

When I test this config using :
curl -vvvik
https://site.com/pma/index.php?token=a5255c4748a3ccbe87b566ba04cae84c -X
POST -d 'pma_username=user&pma_password=somepass'

among other things I get:
..... skip .....
Location:
https://site.com:80/pma/index.php?lang=en&token=25286554842f53e1bb0cfa4390caf154&phpMyAdmin=k6plh7hnvfg6aphfkqbg17p3or70474r

why do i get port 80 in location: and how can i eliminate it?

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

some problems with http:// -> https:// & phpMyAdmin

Gregory Edigarov November 16, 2015 12:00PM

Re: some problems with http:// -> https:// & phpMyAdmin

itpp2012 November 16, 2015 01:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready