Attachment 'mmnginx-17x.patch'

Download

   1 diff -r moin-1.7.2/MoinMoin/request/__init__.py~ moin-1.7.2/MoinMoin/request/__init__.py
   2 --- moin-1.7.2/MoinMoin/request/__init__.py~	Sat Sep 20 22:54:09 2008 +0700
   3 +++ moin-1.7.2/MoinMoin/request/__init__.py	Sat Sep 20 23:21:12 2008 +0700
   4 @@ -508,6 +508,20 @@
   5              # Fix bug in IIS/4.0 when path_info contain script_name
   6              if self.path_info.startswith(self.script_name):
   7                  self.path_info = self.path_info[len(self.script_name):]
   8 +        # Nginx is broken too; set SERVER to "NginxEncoded/..." and
   9 +        # add to nginx config:
  10 +        #
  11 +        # location /wiki {
  12 +        #    include /etc/nginx/fastcgi_params;
  13 +        #    if ($fastcgi_script_name ~ ^/wiki(.*)$) {
  14 +        #        set $path_info $1;
  15 +        #    }
  16 +        #    fastcgi_param SERVER_SOFTWARE NginxEncoded/$nginx_version;
  17 +        #    fastcgi_param PATH_INFO $path_info;
  18 +        #    fastcgi_pass localhost:10000;
  19 +        # }
  20 +        if 'NginxEncoded/' in server_software:
  21 +            self.path_info = wikiutil.url_unquote(self.path_info, want_unicode=False)
  22  
  23      def setURL(self, env):
  24          """ Set url, used to locate wiki config

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2008-09-20 18:20:40, 1.1 KB) [[attachment:mmnginx-17x.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.