changeset 3852:eae62e28343e beta

handle case of rewrite without an gistid in nginx example
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 12 May 2013 17:19:21 +0200
parents 24e479e21334
children be2b75779da3
files docs/setup.rst
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/docs/setup.rst	Sun May 12 17:07:28 2013 +0200
+++ b/docs/setup.rst	Sun May 12 17:19:21 2013 +0200
@@ -551,9 +551,8 @@
        ssl_ciphers DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:EDH-RSA-DES-CBC3-SHA:AES256-SHA:DES-CBC3-SHA:AES128-SHA:RC4-SHA:RC4-MD5;
        ssl_prefer_server_ciphers on;
 
-       location / {
-           rewrite ^/(.*) https://rhodecode.myserver.com/_admin/gists/$1;
-       }
+       rewrite ^/(.+)$ https://rhodecode.myserver.com/_admin/gists/$1;
+       rewrite (.*) https://rhodecode.myserver.org/_admin/gists;
     }
 
     server {