Nginx proxy pass: различия между версиями

Материал из noname.com.ua
Перейти к навигацииПерейти к поиску
Строка 23: Строка 23:
 
* <code>/test_links/baz?foo=bar</code>
 
* <code>/test_links/baz?foo=bar</code>
 
||
 
||
* <code>"POST /new_location?foo=bar</code>
+
* <code>/new_location?foo=bar</code>
* <code>POST /new_location/baz?foo=bar</code>
+
* <code>/new_location/baz?foo=bar</code>
   
   
Строка 44: Строка 44:
 
* <code>/test_links/baz?foo=bar</code>
 
* <code>/test_links/baz?foo=bar</code>
 
||
 
||
* <code>"POST /new_location?foo=bar</code>
+
* <code>/new_location?foo=bar</code>
* <code>POST /new_location/baz?foo=bar</code>
+
* <code>/new_locationbaz?foo=bar HTTP/1.0"</code>
   
   

Версия 10:25, 9 июля 2024

Nginx proxy_pass

Файлы
location proxy_pass Пример конфигурации Request Received by upstream

/test_links

/new_location

location /test_links {
    proxy_pass https://noname.com.ua/new_location;
}
  • /test_links?foo=bar
  • /test_links/baz?foo=bar
  • /new_location?foo=bar
  • /new_location/baz?foo=bar



/test_links/

/new_location

location /test_links/ {
    proxy_pass https://noname.com.ua/new_location;
}
  • /test_links?foo=bar
  • /test_links/baz?foo=bar
  • /new_location?foo=bar
  • /new_locationbaz?foo=bar HTTP/1.0"



/test_links

/new_location

location /test_links {
    proxy_pass https://noname.com.ua/new_location;
}
  • /test_links?foo=bar
  • /test_links/baz?foo=bar
  • "POST /new_location?foo=bar
  • POST /new_location/baz?foo=bar



/test_links

/new_location

location /test_links {
    proxy_pass https://noname.com.ua/new_location;
}
  • /test_links?foo=bar
  • /test_links/baz?foo=bar
  • "POST /new_location?foo=bar
  • POST /new_location/baz?foo=bar




/test_links

/new_location

location /test_links {
    proxy_pass https://noname.com.ua/new_location;
}
  • /test_links?foo=bar
  • /test_links/baz?foo=bar
  • "POST /new_location?foo=bar
  • POST /new_location/baz?foo=bar