mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 16:30:31 +02:00
Fix nginx parser (#4296)
* rewrite nginx parser to allow everything that nginx does
* also make changes in tls_sni_01.py
* add test case with
* allow embedded variables
* allow empty ${} variable
* fix quotes
* un-special case if
* update all tests to reflect current parsing
* escape in QuotedString after merge
* add test cases for variable weirdness that are almost certainly nginx bugs
* update regex for correct variable rules
* close paren doesn't invoke last_space
* Make test file valid Nginx syntax
This commit is contained in:
+3
-3
@@ -1,16 +1,16 @@
|
||||
# static files
|
||||
location ~ ^/(images|javascript|js|css|flash|media|static)/ {
|
||||
root ${PROJECTBASE}/${PROJECTNAME}/static;
|
||||
root "${PROJECTBASE}/${PROJECTNAME}/static";
|
||||
}
|
||||
|
||||
location = /favicon.ico {
|
||||
root ${PROJECTBASE}/${PROJECTNAME}/static/images;
|
||||
root "${PROJECTBASE}/${PROJECTNAME}/static/images";
|
||||
}
|
||||
|
||||
# pass all requests to FastCGI TG server listening on ${HOST}:${PORT}
|
||||
#
|
||||
location / {
|
||||
fastcgi_pass ${HOST}:${PORT};
|
||||
fastcgi_pass "${HOST}:${PORT}";
|
||||
fastcgi_index index;
|
||||
fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
||||
include conf/fastcgi_params;
|
||||
|
||||
Reference in New Issue
Block a user