diff options
Diffstat (limited to 'nginx.conf')
-rw-r--r-- | nginx.conf | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..5a1c5e3 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,35 @@ + # This needs to be included in a server{}-block. + # The basic-auth-file can be generated using `htpass -c file username`. + + location /form { + auth_basic "purl-rs"; + auth_basic_user_file /htpasswd/purl-rs; + + include fastcgi_params; + fastcgi_split_path_info ^(/)(.*); + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME /cgi-bin/purl-rs/purl-rs; + fastcgi_param REMOTE_USER $remote_user; + fastcgi_pass unix:/run/slowcgi.sock; + } + + location /create { + auth_basic "purl-rs"; + auth_basic_user_file /htpasswd/purl-rs; + + include fastcgi_params; + fastcgi_split_path_info ^(/)(.*); + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME /cgi-bin/purl-rs/purl-rs; + fastcgi_param REMOTE_USER $remote_user; + fastcgi_pass unix:/run/slowcgi.sock; + } + + location ~ ^/\+[a-zA-Z0-9_-]+$ { + include fastcgi_params; + fastcgi_split_path_info ^(/)(.*); + fastcgi_param PATH_INFO $fastcgi_path_info; + fastcgi_param SCRIPT_FILENAME /cgi-bin/purl-rs/purl-rs; + fastcgi_pass unix:/run/slowcgi.sock; + } + |