git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Switch back to HTTP status codes for fastcgi + update unit tests
[matches/MCTX3420.git]
/
nginx-configs
/
sites-enabled
/
mctxconfig
diff --git
a/nginx-configs/sites-enabled/mctxconfig
b/nginx-configs/sites-enabled/mctxconfig
index
541f6d1
..
dfdf2b9
100644
(file)
--- a/
nginx-configs/sites-enabled/mctxconfig
+++ b/
nginx-configs/sites-enabled/mctxconfig
@@
-70,18
+70,17
@@
server {
deny all;
}
deny all;
}
- #Login area
- location ^~ /api/login {
- auth_basic "Restricted Access";
- auth_basic_user_file /usr/share/nginx/access/.htpasswd;
-
- fastcgi_pass 127.0.0.1:9005;
- fastcgi_param DOCUMENT_URI_LOCAL login;
- include fastcgi_params;
- }
-
#MCTX API
location /api {
#MCTX API
location /api {
+ #Login area
+ location ^~ /api/login {
+ auth_basic "Restricted Access";
+ auth_basic_user_file /usr/share/nginx/access/.htpasswd;
+
+ fastcgi_pass 127.0.0.1:9005;
+ fastcgi_param DOCUMENT_URI_LOCAL login;
+ include fastcgi_params;
+ }
location ~ ^/api/?([^?]*) {
fastcgi_pass 127.0.0.1:9005;
fastcgi_param DOCUMENT_URI_LOCAL $1;
location ~ ^/api/?([^?]*) {
fastcgi_pass 127.0.0.1:9005;
fastcgi_param DOCUMENT_URI_LOCAL $1;
UCC
git Repository :: git.ucc.asn.au