better scripts/setup-web2py-nginx-uwsgi-ubuntu.sh, thanks Anthony

This commit is contained in:
mdipierro
2013-07-12 11:58:16 -05:00
parent d1065178bd
commit 70f34e4532
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.6.0-development+timestamp.2013.07.12.09.51.41 Version 2.6.0-development+timestamp.2013.07.12.11.57.25
+3 -3
View File
@@ -43,19 +43,19 @@ echo 'server {
listen 80; listen 80;
server_name $hostname; server_name $hostname;
###to enable correct use of response.static_version ###to enable correct use of response.static_version
#location ~* /(\w+)/static(?:/_[\d]+\.[\d]+\.[\d]+)?/(.*)$ { #location ~* ^/(\w+)/static(?:/_[\d]+\.[\d]+\.[\d]+)?/(.*)$ {
# alias /home/www-data/web2py/applications/$1/static/$2; # alias /home/www-data/web2py/applications/$1/static/$2;
# expires max; # expires max;
#} #}
### ###
###if you use something like myapp = dict(languages=['en', 'it', 'jp'], default_language='en') in your routes.py ###if you use something like myapp = dict(languages=['en', 'it', 'jp'], default_language='en') in your routes.py
#location ~* /(\w+)/(en|it|jp)/static/(.*)$ { #location ~* ^/(\w+)/(en|it|jp)/static/(.*)$ {
# alias /home/www-data/web2py/applications/$1/; # alias /home/www-data/web2py/applications/$1/;
# try_files static/$2/$3 static/$3 =404; # try_files static/$2/$3 static/$3 =404;
#} #}
### ###
location ~* /(\w+)/static/ { location ~* ^/(\w+)/static/ {
root /home/www-data/web2py/applications/; root /home/www-data/web2py/applications/;
#remove next comment on production #remove next comment on production
#expires max; #expires max;