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

Gregory Edigarov edigarov at
Mon Nov 16 16:58:43 UTC 2015

server {
     listen 80;
     location / {
        return 301$request_uri;

server {
     listen 443;

     [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;                     #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 -X 
POST -d 'pma_username=user&pma_password=somepass'

among other things I get:
.... skip .....

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

More information about the nginx mailing list