Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 478402 - =www-servers/nginx-1.4.1-r2 nginx_modules_http_fancyindex issue
Summary: =www-servers/nginx-1.4.1-r2 nginx_modules_http_fancyindex issue
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tiziano Müller (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-27 22:24 UTC by rypervenche
Modified: 2013-10-05 12:18 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild patch (nginx.patch,491 bytes, patch)
2013-07-27 22:24 UTC, rypervenche
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rypervenche 2013-07-27 22:24:05 UTC
Created attachment 354340 [details, diff]
Ebuild patch

I found that when using fancyindex in Nginx it would display my index but it would take exactly 60 seconds to load the site in question. It appears that this is due to its returning an HTTP 0 code. I found others who have had this issue online and I found a work-around. I have attached my ebuild patch for my work-around. You can find the link to where I got this idea here: http://serverfault.com/questions/507375/nginx-not-finishing-fancyindex

To reproduce this error, you can create a server configuration such as this:

server {
	server_name localhost;

	listen 80;

	root /var/www/localhost;

	fancyindex on;
	fancyindex_exact_size off;
}


Lastly, here is all of the relevant information from my system:

Portage 2.1.12.2 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo-nu x86_64)
=================================================================
System uname: Linux-3.8.13-gentoo-nu-x86_64-Intel-R-_Atom-TM-_CPU_N2800_@_1.86GHz-with-gentoo-2.2
KiB Mem:     4032440 total,     96460 free
KiB Swap:    8388600 total,   8349548 free
Timestamp of tree: Sat, 27 Jul 2013 18:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5, 3.2.5-r1
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync1.fr.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 bzip2 cjk cli color cracklib crypt cxx dbus dri exif faac ffmpeg flac gdbm geoip gif git gpm hddtemp iconv icu idn imagemagick ios iproute2 ipv6 ithreads jpeg libass libmpeg2 lm_sensors m17n-lib maildir matroska mmx modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl offensive ogg openmp pam pcmcia pcre png postgres python readline session socks5 speex sse sse2 ssh ssl svg tcpd theora threads truetype udev unicode usb vim-syntax vorbis wifi win32codecs x264 xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="proxy proxy_http actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en fr zh_TW el" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi cache_purge flv geoip gzip_static image_filter lua mp4 perl realip secure_link slowfs_cache stub_status sub upload upload_progress fancyindex" NGINX_MODULES_MAIL="imap smtp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4 php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

www-servers/nginx-1.4.1-r2 was built with the following:
USE="http http-cache ipv6 pcre ssl vim-syntax -aio -debug -libatomic -pcre-jit (-selinux) -syslog" NGINX_MODULES_HTTP="access auth_basic autoindex browser cache_purge charset empty_gif fancyindex fastcgi flv geo geoip gzip gzip_static image_filter limit_conn limit_req lua map memcached mp4 perl proxy realip referer rewrite scgi secure_link slowfs_cache split_clients ssi stub_status sub upload_progress upstream_ip_hash userid uwsgi -addition -auth_pam -dav -degradation -gunzip -headers_more -metrics -push -random_index -spdy -upstream_check -xslt" NGINX_MODULES_MAIL="imap smtp -pop3"
Comment 1 Johan Bergström 2013-08-07 04:07:21 UTC
Has this been reported upstream? If not, please do. Even if we were to temporarily carry such a patch, I would much rather prefer an upstream commit.
Comment 2 Johan Bergström 2013-09-29 12:54:49 UTC
Just a FYI - this was fixed with ngx_fancyindex 0.3.2. Will close bug when nginx 1.4.2 lands in unstable arches.
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2013-10-05 12:18:05 UTC
nginx-1.4.2-r1 just got unmasked.