Opened 6 years ago
Closed 6 years ago
#1634 closed defect (fixed)
No response from nginx
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | nginx-core | Version: | 1.15.x |
Keywords: | Cc: | ||
uname -a: | |||
nginx -V: |
nginx version: nginx/1.15.4
built by gcc 7.2.0 built with OpenSSL 1.0.2l 25 May 2017 TLS SNI support enabled configure arguments: --prefix=/var/www --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/sbin/nginx --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-log-path=logs/access.log --error-log-path=logs/error.log --http-client-body-temp-path=/var/www/cache/client_body_temp --http-proxy-temp-path=/var/www/cache/proxy_temp --http-fastcgi-temp-path=/var/www/cache/fastcgi_temp --http-scgi-temp-path=/var/www/cache/scgi_temp --http-uwsgi-temp-path=/var/www/cache/uwsgi_temp --user=www --group=www --with-http_gzip_static_module --with-http_ssl_module --with-http_stub_status_module --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module |
Description
I have no responsa nginx from configuration followyn:
server { listen 8080; location /test { error_page 404 =200 @err502; } location @err502 { return 502; } }
# curl 127.1:8080/test curl: (52) Empty reply from server
水雞
Change History (5)
comment:1 by , 6 years ago
Status: | new → accepted |
---|
follow-up: 3 comment:2 by , 6 years ago
It doesn't work for me. With your patch nginx returns index page instead of 502 page.
comment:3 by , 6 years ago
Replying to huisuiwyn@…:
It doesn't work for me. With your patch nginx returns index page instead of 502 page.
Please double-check to make sure there are no other factors that results in index page being returned in your configuration. If it is indeed the case, please provide debug log.
comment:5 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Fix committed, thanks for reporting this.
Note:
See TracTickets
for help on using tickets.
Thanks for reporting this. Please try the following patch: