Commit f47e3f37 authored by HERBERT Ryan's avatar HERBERT Ryan Committed by Mathieu Giraud

packaging nginx_web2py escaped $ fix

Resolved an issue with the packaging configuration due to some nasty
copy/pasting from a script which introduced some unwanted backslashes
parent 09590bae
server { server {
listen 80; listen 80;
server_name \$hostname; server_name $hostname;
location /browser { location /browser {
root /var/www; root /var/www;
...@@ -20,7 +20,7 @@ server { ...@@ -20,7 +20,7 @@ server {
###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 /usr/share/vidjil/server/web2py/applications/\$1/static/\$2; # alias /usr/share/vidjil/server/web2py/applications/$1/static/$2;
# expires max; # expires max;
# #
#} #}
...@@ -39,8 +39,8 @@ server { ...@@ -39,8 +39,8 @@ server {
#uwsgi_pass 127.0.0.1:9001; #uwsgi_pass 127.0.0.1:9001;
uwsgi_pass unix:///tmp/web2py.socket; uwsgi_pass unix:///tmp/web2py.socket;
include uwsgi_params; include uwsgi_params;
uwsgi_param UWSGI_SCHEME \$scheme; uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWARE nginx/\$nginx_version; uwsgi_param SERVER_SOFTWARE nginx/$nginx_version;
proxy_read_timeout 600; proxy_read_timeout 600;
###remove the comments to turn on if you want gzip compression of your pages ###remove the comments to turn on if you want gzip compression of your pages
...@@ -60,14 +60,14 @@ server { ...@@ -60,14 +60,14 @@ server {
# Fastcgi parameters, include the standard ones # Fastcgi parameters, include the standard ones
include /etc/nginx/fastcgi_params; include /etc/nginx/fastcgi_params;
# Adjust non standard parameters (SCRIPT_FILENAME) # Adjust non standard parameters (SCRIPT_FILENAME)
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
} }
} }
server { server {
listen 443 default_server ssl; listen 443 default_server ssl;
server_name \$hostname; server_name $hostname;
ssl_certificate /etc/nginx/ssl/web2py.crt; ssl_certificate /etc/nginx/ssl/web2py.crt;
ssl_certificate_key /etc/nginx/ssl/web2py.key; ssl_certificate_key /etc/nginx/ssl/web2py.key;
ssl_prefer_server_ciphers on; ssl_prefer_server_ciphers on;
...@@ -80,8 +80,8 @@ server { ...@@ -80,8 +80,8 @@ server {
#uwsgi_pass 127.0.0.1:9001; #uwsgi_pass 127.0.0.1:9001;
uwsgi_pass unix:///tmp/web2py.socket; uwsgi_pass unix:///tmp/web2py.socket;
include uwsgi_params; include uwsgi_params;
uwsgi_param UWSGI_SCHEME \$scheme; uwsgi_param UWSGI_SCHEME $scheme;
uwsgi_param SERVER_SOFTWARE nginx/\$nginx_version; uwsgi_param SERVER_SOFTWARE nginx/$nginx_version;
###remove the comments to turn on if you want gzip compression of your pages ###remove the comments to turn on if you want gzip compression of your pages
# include /etc/nginx/conf.d/web2py/gzip.conf; # include /etc/nginx/conf.d/web2py/gzip.conf;
### end gzip section ### end gzip section
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment