Opened 7 years ago

Closed 7 years ago

#516 closed defect (invalid)

HTTPS breaks on 1.4.6

Reported by: Scott Arciszewski Owned by:
Priority: minor Milestone:
Component: nginx-core Version: 1.4.x
Keywords: Cc:
uname -a:
Linux linuxmint 3.11.0-17-generic #31-Ubuntu SMP Mon Feb 3 21:52:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.4.6
built by gcc 4.7.2 (Debian 4.7.2-5)
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-z,relro --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-file-aio --with-http_spdy_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_secure_link_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-auth-pam --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-dav-ext-module --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-echo --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-upstream-fair --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-syslog --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-cache-purge --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/ngx_http_pinba_module --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/ngx_http_substitutions_filter_module --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-x-rid-header --with-ld-opt=-lossp-uuid
sarciszewski@linuxmint ~ $ nginx -V > less
nginx version: nginx/1.4.6
built by gcc 4.7.2 (Debian 4.7.2-5)
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' --with-ld-opt=-Wl,-z,relro --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-file-aio --with-http_spdy_module --with-http_addition_module --with-http_dav_module --with-http_geoip_module --with-http_gzip_static_module --with-http_image_filter_module --with-http_secure_link_module --with-http_sub_module --with-http_xslt_module --with-mail --with-mail_ssl_module --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-auth-pam --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-dav-ext-module --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-echo --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-upstream-fair --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-syslog --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-cache-purge --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/ngx_http_pinba_module --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/ngx_http_substitutions_filter_module --add-module=/usr/src/nginx/source/nginx-1.4.6/debian/modules/nginx-x-rid-header --with-ld-opt=-lossp-uuid

Description

So, I have HTTPS deployed on a testing machine (I'm replacing the hostname with "localhost" in my examples). In the latest version of nginx (1.4.6), behavior is bizarre. For example:

http://localhost/robots.txt yields:
"""
User-agent: *
Disallow: /
"""

https://localhost/robots.txt yields:
"""
Accept-Ranges: bytes

U
"""

(I added the """ quotes """ to add a python-style multi-quote for readability, they are not part of the output)

Attachments (1)

robots.txt (25 bytes ) - added by Scott Arciszewski 7 years ago.

Download all attachments as: .zip

Change History (3)

by Scott Arciszewski, 7 years ago

Attachment: robots.txt added

comment:1 by Scott Arciszewski, 7 years ago

Crap, how do I close this? I found the problem: One of the scripts was writing to a file that affected configuration, and it failed.

comment:2 by Valentin V. Bartenev, 7 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.