Edgewall Software

Changes between Version 81 and Version 82 of TracFastCgi


Ignore:
Timestamp:
Sep 24, 2014, 12:10:49 PM (10 years ago)
Author:
anonymous
Comment:

nginix will support non utf8 characters and spaces in links (especialy wiki links)

Legend:

Unmodified
Added
Removed
Modified
  • TracFastCgi

    v81 v82  
    386386        ssl_prefer_server_ciphers   on;
    387387
    388         # (Or ``^/some/prefix/(.*)``.
    389         if ($uri ~ ^/(.*)) {
    390              set $path_info /$1;
    391         }
    392 
    393         # it makes sense to serve static resources through Nginx
     388        # it makes sense to serve static resources through Nginx (or ``[/some/prefix]/chrome/``)
    394389        location /chrome/ {
    395390             alias /home/trac/instance/static/htdocs/;
    396391        }
    397392
    398         # You can copy this whole location to ``location [/some/prefix]/login``
     393        # You can copy this whole location to ``location [/some/prefix](/login)``
    399394        # and remove the auth entries below if you want Trac to enforce
    400395        # authorization where appropriate instead of needing to authenticate
    401396        # for accessing the whole site.
    402         # (Or ``location /some/prefix``.)
    403         location / {
     397        # (Or ``~ location /some/prefix(/.*)``.)
     398        location ~ (/.*) {
    404399            auth_basic            "trac realm";
    405400            auth_basic_user_file /home/trac/htpasswd;
     
    415410            # (Or ``fastcgi_param  SCRIPT_NAME  /some/prefix``.)
    416411            fastcgi_param  SCRIPT_NAME        "";
    417             fastcgi_param  PATH_INFO           $path_info;
     412            fastcgi_param  PATH_INFO          $1;
    418413
    419414            ## WSGI NEEDED VARIABLES - trac warns about them