Package: nginx
Version: 0.5.35-1~bpo40+1
Severity: wishlist
Tags: patch

Hi,

in the default installation of nginx, the /doc URL space is not
supported. I'd like nginx to support it, simply to not need to install a
different webserver to access package information. The attached patch
accomplishes that, and contains a hack to make gzip-compressed files
easier to use. It's only a hack because nginx does not support the
notion of an "encoding" (yet?).


Kind regards,
--Toni++

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.22-4-amd64
Locale: LANG=de_DE.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)

Versions of packages nginx depends on:
ii  libc6                  2.3.6.ds1-13etch5 GNU C Library: Shared libraries
ii  libpcre3               6.7+7.4-3         Perl 5 Compatible Regular Expressi
ii  libssl0.9.8            0.9.8c-4etch1     SSL shared libraries
ii  zlib1g                 1:1.2.3-13        compression library - runtime

nginx recommends no packages.

-- no debconf information
--- default.orig	2008-02-10 18:34:50.000000000 +0100
+++ default	2008-04-06 12:40:55.000000000 +0200
@@ -4,12 +4,23 @@
 # }
 # statements for each of your virtual hosts
 
+
+types {
+	application/x-gzip	gz;
+}
+
+
 server {
 	listen   80;
 	server_name  localhost;
 
 	access_log  /var/log/nginx/localhost.access.log;
 
+	location ^~ /doc {
+		root   		/usr/share;
+		autoindex	on;
+	}
+
 	location / {
 		root   /var/www/nginx-default;
 		index  index.html index.htm;

Reply via email to