nginx : simple configuration with proxy_pass fail Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Come Celebrate our 10 Year Anniversary!Help needed setting up nginx to serve static filesBlank Page: wordpress on nginx+php-fpmnginx redirect issue with upstream configurationnginx : backend https, proxy_pass shows ipProperly setting up a “default” nginx server for httpsnginx proxy_pass eventually returns GATEWAY_TIMEOUT even though server is still activenginx proxy_pass is being ignoredConfigure NGINX : How to handle 500 Error on upstream itself, While Nginx handle other 5xx errorsWhy is Nginx displaying a “502 Bad Gateway Error”?

What was the last profitable war?

Why are two-digit numbers in Jonathan Swift's "Gulliver's Travels" (1726) written in "German style"?

Was the pager message from Nick Fury to Captain Marvel unnecessary?

In musical terms, what properties are varied by the human voice to produce different words / syllables?

As a dual citizen, my US passport will expire one day after traveling to the US. Will this work?

Sally's older brother

malloc in main() or malloc in another function: allocating memory for a struct and its members

By what mechanism was the 2017 UK General Election called?

Why does BitLocker not use RSA?

Is the time—manner—place ordering of adverbials an oversimplification?

Can two people see the same photon?

Inverse square law not accurate for non-point masses?

Where did Ptolemy compare the Earth to the distance of fixed stars?

NIntegrate on a solution of a matrix ODE

Keep at all times, the minus sign above aligned with minus sign below

Problem with display of presentation

Understanding piped commands in GNU/Linux

Why complex landing gears are used instead of simple, reliable and light weight muscle wire or shape memory alloys?

Did any compiler fully use 80-bit floating point?

Centre cell vertically in tabularx

Fit odd number of triplets in a measure?

Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?

What is the proper term for etching or digging of wall to hide conduit of cables

One-one communication



nginx : simple configuration with proxy_pass fail



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Help needed setting up nginx to serve static filesBlank Page: wordpress on nginx+php-fpmnginx redirect issue with upstream configurationnginx : backend https, proxy_pass shows ipProperly setting up a “default” nginx server for httpsnginx proxy_pass eventually returns GATEWAY_TIMEOUT even though server is still activenginx proxy_pass is being ignoredConfigure NGINX : How to handle 500 Error on upstream itself, While Nginx handle other 5xx errorsWhy is Nginx displaying a “502 Bad Gateway Error”?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I try a simple configuration with an nginx v1.10.13. The configuration :



events




http

server

listen 80;

location = /loc1

proxy_pass http://192.168.0.5:80/;





and try this configuration with curl --data "param1=XXX" -X POST http://192.168.0.4:80/loc1



I watch 192.168.0.5 incoming connection and nothing come.



I really don't understand what is wrong, the configuration is very simple. I match all connexion on port 80, and all loc1 location. So why my curl command fail ? curl command return Not found: /...










share|improve this question







New contributor




GAUTHIER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


























    1















    I try a simple configuration with an nginx v1.10.13. The configuration :



    events




    http

    server

    listen 80;

    location = /loc1

    proxy_pass http://192.168.0.5:80/;





    and try this configuration with curl --data "param1=XXX" -X POST http://192.168.0.4:80/loc1



    I watch 192.168.0.5 incoming connection and nothing come.



    I really don't understand what is wrong, the configuration is very simple. I match all connexion on port 80, and all loc1 location. So why my curl command fail ? curl command return Not found: /...










    share|improve this question







    New contributor




    GAUTHIER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      1












      1








      1








      I try a simple configuration with an nginx v1.10.13. The configuration :



      events




      http

      server

      listen 80;

      location = /loc1

      proxy_pass http://192.168.0.5:80/;





      and try this configuration with curl --data "param1=XXX" -X POST http://192.168.0.4:80/loc1



      I watch 192.168.0.5 incoming connection and nothing come.



      I really don't understand what is wrong, the configuration is very simple. I match all connexion on port 80, and all loc1 location. So why my curl command fail ? curl command return Not found: /...










      share|improve this question







      New contributor




      GAUTHIER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I try a simple configuration with an nginx v1.10.13. The configuration :



      events




      http

      server

      listen 80;

      location = /loc1

      proxy_pass http://192.168.0.5:80/;





      and try this configuration with curl --data "param1=XXX" -X POST http://192.168.0.4:80/loc1



      I watch 192.168.0.5 incoming connection and nothing come.



      I really don't understand what is wrong, the configuration is very simple. I match all connexion on port 80, and all loc1 location. So why my curl command fail ? curl command return Not found: /...







      nginx






      share|improve this question







      New contributor




      GAUTHIER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      GAUTHIER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      GAUTHIER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked Apr 15 at 20:29









      GAUTHIERGAUTHIER

      61




      61




      New contributor




      GAUTHIER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      GAUTHIER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      GAUTHIER is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          2 Answers
          2






          active

          oldest

          votes


















          0














          Try with other order:



          server
          server_name _;
          root /var/www/;
          index index.php index.html index.htm;

          location /
          try_files $uri $uri/ /index.php$is_args$args ;



          This part

          location /what_you_want/ 
          proxy_pass http://192.168.154.102/;





           access_log /var/log/nginx/mp_name_access.log;
          error_log /var/log/nginx/mp_name_error.log;



          The http{ at the beginning does not make a sense to me






          share|improve this answer








          New contributor




          Alanmunizrdz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Thanks for your answer. I try to supress http directive but I obtain ""server" directive is not allowed here". I am not sure to understand, what do is wrong with order ? Because I put location inside server directive, as on your example.

            – GAUTHIER
            Apr 16 at 6:57











          • could you provide me more information? I mean what is the file that you are trying to edit? generally should be a new file in /etc/nginx/sites-enabled/yourfile.conf I always do as the code that I sent you, and I never had a problem, thats why probably need more details :)

            – Alanmunizrdz
            Apr 16 at 14:36











          • I try to write an entire new /etc/nginx/nginx.conf. My goal is to start with a very simple configuration that I will increase step by step. And to supress all configuration I don't understand I start with a new one

            – GAUTHIER
            Apr 16 at 15:43











          • Okay I understand, I recommend you to split the nginx.conf from the virtual hosts, you always can customize the nginx.conf and the vhost separately, Check this link, there is the default nginx conf and the vhost for php, regards! [ github.com/alanmuniz/nginx-example ]

            – Alanmunizrdz
            Apr 16 at 18:01



















          0














          Is this your default configuration? If so, the parameter "server_name" should already be there. What strikes me is the "location" specification. This should be without "=". And with curl you specify the port, which is not necessary for http = 80.



          my suggestion would be



          http 
          server
          listen 80;

          location /loc1/
          proxy_pass http://192.168.0.5;





          Since the headers are also important for proxy_pass, I would rather follow the official example. nginx proxy_pass example






          share|improve this answer








          New contributor




          WillHoh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Thanks, I try to add "server_name _;" and "proxy_set_header Host $host;" and "proxy_set_header X-Real-IP $remote_addr;". I supress port inside curl command, but I alway obtain error. On nginx access log, there is "192.168.0.10 - - [16/Apr/2019:12:30:52 +0200] "POST /loc1 HTTP/1.1" 404 12 "-" "curl/7.58.0""

            – GAUTHIER
            Apr 16 at 11:08











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "2"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          GAUTHIER is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963184%2fnginx-simple-configuration-with-proxy-pass-fail%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Try with other order:



          server
          server_name _;
          root /var/www/;
          index index.php index.html index.htm;

          location /
          try_files $uri $uri/ /index.php$is_args$args ;



          This part

          location /what_you_want/ 
          proxy_pass http://192.168.154.102/;





           access_log /var/log/nginx/mp_name_access.log;
          error_log /var/log/nginx/mp_name_error.log;



          The http{ at the beginning does not make a sense to me






          share|improve this answer








          New contributor




          Alanmunizrdz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Thanks for your answer. I try to supress http directive but I obtain ""server" directive is not allowed here". I am not sure to understand, what do is wrong with order ? Because I put location inside server directive, as on your example.

            – GAUTHIER
            Apr 16 at 6:57











          • could you provide me more information? I mean what is the file that you are trying to edit? generally should be a new file in /etc/nginx/sites-enabled/yourfile.conf I always do as the code that I sent you, and I never had a problem, thats why probably need more details :)

            – Alanmunizrdz
            Apr 16 at 14:36











          • I try to write an entire new /etc/nginx/nginx.conf. My goal is to start with a very simple configuration that I will increase step by step. And to supress all configuration I don't understand I start with a new one

            – GAUTHIER
            Apr 16 at 15:43











          • Okay I understand, I recommend you to split the nginx.conf from the virtual hosts, you always can customize the nginx.conf and the vhost separately, Check this link, there is the default nginx conf and the vhost for php, regards! [ github.com/alanmuniz/nginx-example ]

            – Alanmunizrdz
            Apr 16 at 18:01
















          0














          Try with other order:



          server
          server_name _;
          root /var/www/;
          index index.php index.html index.htm;

          location /
          try_files $uri $uri/ /index.php$is_args$args ;



          This part

          location /what_you_want/ 
          proxy_pass http://192.168.154.102/;





           access_log /var/log/nginx/mp_name_access.log;
          error_log /var/log/nginx/mp_name_error.log;



          The http{ at the beginning does not make a sense to me






          share|improve this answer








          New contributor




          Alanmunizrdz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Thanks for your answer. I try to supress http directive but I obtain ""server" directive is not allowed here". I am not sure to understand, what do is wrong with order ? Because I put location inside server directive, as on your example.

            – GAUTHIER
            Apr 16 at 6:57











          • could you provide me more information? I mean what is the file that you are trying to edit? generally should be a new file in /etc/nginx/sites-enabled/yourfile.conf I always do as the code that I sent you, and I never had a problem, thats why probably need more details :)

            – Alanmunizrdz
            Apr 16 at 14:36











          • I try to write an entire new /etc/nginx/nginx.conf. My goal is to start with a very simple configuration that I will increase step by step. And to supress all configuration I don't understand I start with a new one

            – GAUTHIER
            Apr 16 at 15:43











          • Okay I understand, I recommend you to split the nginx.conf from the virtual hosts, you always can customize the nginx.conf and the vhost separately, Check this link, there is the default nginx conf and the vhost for php, regards! [ github.com/alanmuniz/nginx-example ]

            – Alanmunizrdz
            Apr 16 at 18:01














          0












          0








          0







          Try with other order:



          server
          server_name _;
          root /var/www/;
          index index.php index.html index.htm;

          location /
          try_files $uri $uri/ /index.php$is_args$args ;



          This part

          location /what_you_want/ 
          proxy_pass http://192.168.154.102/;





           access_log /var/log/nginx/mp_name_access.log;
          error_log /var/log/nginx/mp_name_error.log;



          The http{ at the beginning does not make a sense to me






          share|improve this answer








          New contributor




          Alanmunizrdz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          Try with other order:



          server
          server_name _;
          root /var/www/;
          index index.php index.html index.htm;

          location /
          try_files $uri $uri/ /index.php$is_args$args ;



          This part

          location /what_you_want/ 
          proxy_pass http://192.168.154.102/;





           access_log /var/log/nginx/mp_name_access.log;
          error_log /var/log/nginx/mp_name_error.log;



          The http{ at the beginning does not make a sense to me







          share|improve this answer








          New contributor




          Alanmunizrdz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Alanmunizrdz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered Apr 15 at 22:10









          AlanmunizrdzAlanmunizrdz

          262




          262




          New contributor




          Alanmunizrdz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Alanmunizrdz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Alanmunizrdz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












          • Thanks for your answer. I try to supress http directive but I obtain ""server" directive is not allowed here". I am not sure to understand, what do is wrong with order ? Because I put location inside server directive, as on your example.

            – GAUTHIER
            Apr 16 at 6:57











          • could you provide me more information? I mean what is the file that you are trying to edit? generally should be a new file in /etc/nginx/sites-enabled/yourfile.conf I always do as the code that I sent you, and I never had a problem, thats why probably need more details :)

            – Alanmunizrdz
            Apr 16 at 14:36











          • I try to write an entire new /etc/nginx/nginx.conf. My goal is to start with a very simple configuration that I will increase step by step. And to supress all configuration I don't understand I start with a new one

            – GAUTHIER
            Apr 16 at 15:43











          • Okay I understand, I recommend you to split the nginx.conf from the virtual hosts, you always can customize the nginx.conf and the vhost separately, Check this link, there is the default nginx conf and the vhost for php, regards! [ github.com/alanmuniz/nginx-example ]

            – Alanmunizrdz
            Apr 16 at 18:01


















          • Thanks for your answer. I try to supress http directive but I obtain ""server" directive is not allowed here". I am not sure to understand, what do is wrong with order ? Because I put location inside server directive, as on your example.

            – GAUTHIER
            Apr 16 at 6:57











          • could you provide me more information? I mean what is the file that you are trying to edit? generally should be a new file in /etc/nginx/sites-enabled/yourfile.conf I always do as the code that I sent you, and I never had a problem, thats why probably need more details :)

            – Alanmunizrdz
            Apr 16 at 14:36











          • I try to write an entire new /etc/nginx/nginx.conf. My goal is to start with a very simple configuration that I will increase step by step. And to supress all configuration I don't understand I start with a new one

            – GAUTHIER
            Apr 16 at 15:43











          • Okay I understand, I recommend you to split the nginx.conf from the virtual hosts, you always can customize the nginx.conf and the vhost separately, Check this link, there is the default nginx conf and the vhost for php, regards! [ github.com/alanmuniz/nginx-example ]

            – Alanmunizrdz
            Apr 16 at 18:01

















          Thanks for your answer. I try to supress http directive but I obtain ""server" directive is not allowed here". I am not sure to understand, what do is wrong with order ? Because I put location inside server directive, as on your example.

          – GAUTHIER
          Apr 16 at 6:57





          Thanks for your answer. I try to supress http directive but I obtain ""server" directive is not allowed here". I am not sure to understand, what do is wrong with order ? Because I put location inside server directive, as on your example.

          – GAUTHIER
          Apr 16 at 6:57













          could you provide me more information? I mean what is the file that you are trying to edit? generally should be a new file in /etc/nginx/sites-enabled/yourfile.conf I always do as the code that I sent you, and I never had a problem, thats why probably need more details :)

          – Alanmunizrdz
          Apr 16 at 14:36





          could you provide me more information? I mean what is the file that you are trying to edit? generally should be a new file in /etc/nginx/sites-enabled/yourfile.conf I always do as the code that I sent you, and I never had a problem, thats why probably need more details :)

          – Alanmunizrdz
          Apr 16 at 14:36













          I try to write an entire new /etc/nginx/nginx.conf. My goal is to start with a very simple configuration that I will increase step by step. And to supress all configuration I don't understand I start with a new one

          – GAUTHIER
          Apr 16 at 15:43





          I try to write an entire new /etc/nginx/nginx.conf. My goal is to start with a very simple configuration that I will increase step by step. And to supress all configuration I don't understand I start with a new one

          – GAUTHIER
          Apr 16 at 15:43













          Okay I understand, I recommend you to split the nginx.conf from the virtual hosts, you always can customize the nginx.conf and the vhost separately, Check this link, there is the default nginx conf and the vhost for php, regards! [ github.com/alanmuniz/nginx-example ]

          – Alanmunizrdz
          Apr 16 at 18:01






          Okay I understand, I recommend you to split the nginx.conf from the virtual hosts, you always can customize the nginx.conf and the vhost separately, Check this link, there is the default nginx conf and the vhost for php, regards! [ github.com/alanmuniz/nginx-example ]

          – Alanmunizrdz
          Apr 16 at 18:01














          0














          Is this your default configuration? If so, the parameter "server_name" should already be there. What strikes me is the "location" specification. This should be without "=". And with curl you specify the port, which is not necessary for http = 80.



          my suggestion would be



          http 
          server
          listen 80;

          location /loc1/
          proxy_pass http://192.168.0.5;





          Since the headers are also important for proxy_pass, I would rather follow the official example. nginx proxy_pass example






          share|improve this answer








          New contributor




          WillHoh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Thanks, I try to add "server_name _;" and "proxy_set_header Host $host;" and "proxy_set_header X-Real-IP $remote_addr;". I supress port inside curl command, but I alway obtain error. On nginx access log, there is "192.168.0.10 - - [16/Apr/2019:12:30:52 +0200] "POST /loc1 HTTP/1.1" 404 12 "-" "curl/7.58.0""

            – GAUTHIER
            Apr 16 at 11:08















          0














          Is this your default configuration? If so, the parameter "server_name" should already be there. What strikes me is the "location" specification. This should be without "=". And with curl you specify the port, which is not necessary for http = 80.



          my suggestion would be



          http 
          server
          listen 80;

          location /loc1/
          proxy_pass http://192.168.0.5;





          Since the headers are also important for proxy_pass, I would rather follow the official example. nginx proxy_pass example






          share|improve this answer








          New contributor




          WillHoh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















          • Thanks, I try to add "server_name _;" and "proxy_set_header Host $host;" and "proxy_set_header X-Real-IP $remote_addr;". I supress port inside curl command, but I alway obtain error. On nginx access log, there is "192.168.0.10 - - [16/Apr/2019:12:30:52 +0200] "POST /loc1 HTTP/1.1" 404 12 "-" "curl/7.58.0""

            – GAUTHIER
            Apr 16 at 11:08













          0












          0








          0







          Is this your default configuration? If so, the parameter "server_name" should already be there. What strikes me is the "location" specification. This should be without "=". And with curl you specify the port, which is not necessary for http = 80.



          my suggestion would be



          http 
          server
          listen 80;

          location /loc1/
          proxy_pass http://192.168.0.5;





          Since the headers are also important for proxy_pass, I would rather follow the official example. nginx proxy_pass example






          share|improve this answer








          New contributor




          WillHoh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          Is this your default configuration? If so, the parameter "server_name" should already be there. What strikes me is the "location" specification. This should be without "=". And with curl you specify the port, which is not necessary for http = 80.



          my suggestion would be



          http 
          server
          listen 80;

          location /loc1/
          proxy_pass http://192.168.0.5;





          Since the headers are also important for proxy_pass, I would rather follow the official example. nginx proxy_pass example







          share|improve this answer








          New contributor




          WillHoh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          WillHoh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered Apr 16 at 9:38









          WillHohWillHoh

          13




          13




          New contributor




          WillHoh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          WillHoh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          WillHoh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.












          • Thanks, I try to add "server_name _;" and "proxy_set_header Host $host;" and "proxy_set_header X-Real-IP $remote_addr;". I supress port inside curl command, but I alway obtain error. On nginx access log, there is "192.168.0.10 - - [16/Apr/2019:12:30:52 +0200] "POST /loc1 HTTP/1.1" 404 12 "-" "curl/7.58.0""

            – GAUTHIER
            Apr 16 at 11:08

















          • Thanks, I try to add "server_name _;" and "proxy_set_header Host $host;" and "proxy_set_header X-Real-IP $remote_addr;". I supress port inside curl command, but I alway obtain error. On nginx access log, there is "192.168.0.10 - - [16/Apr/2019:12:30:52 +0200] "POST /loc1 HTTP/1.1" 404 12 "-" "curl/7.58.0""

            – GAUTHIER
            Apr 16 at 11:08
















          Thanks, I try to add "server_name _;" and "proxy_set_header Host $host;" and "proxy_set_header X-Real-IP $remote_addr;". I supress port inside curl command, but I alway obtain error. On nginx access log, there is "192.168.0.10 - - [16/Apr/2019:12:30:52 +0200] "POST /loc1 HTTP/1.1" 404 12 "-" "curl/7.58.0""

          – GAUTHIER
          Apr 16 at 11:08





          Thanks, I try to add "server_name _;" and "proxy_set_header Host $host;" and "proxy_set_header X-Real-IP $remote_addr;". I supress port inside curl command, but I alway obtain error. On nginx access log, there is "192.168.0.10 - - [16/Apr/2019:12:30:52 +0200] "POST /loc1 HTTP/1.1" 404 12 "-" "curl/7.58.0""

          – GAUTHIER
          Apr 16 at 11:08










          GAUTHIER is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          GAUTHIER is a new contributor. Be nice, and check out our Code of Conduct.












          GAUTHIER is a new contributor. Be nice, and check out our Code of Conduct.











          GAUTHIER is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f963184%2fnginx-simple-configuration-with-proxy-pass-fail%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

          Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

          Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020