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
Merge pull request #40 from jtanx/master
[matches/MCTX3420.git]
/
server-configs
/
nginx
/
sites-enabled
/
mctxconfig
diff --git
a/server-configs/nginx/sites-enabled/mctxconfig
b/server-configs/nginx/sites-enabled/mctxconfig
index
1491152
..
82d972a
100644
(file)
--- a/
server-configs/nginx/sites-enabled/mctxconfig
+++ b/
server-configs/nginx/sites-enabled/mctxconfig
@@
-2,7
+2,7
@@
server {
listen 80;
#Change this to match your root directory
listen 80;
#Change this to match your root directory
- root /usr/share/nginx/
html
;
+ root /usr/share/nginx/
www
;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
index index.php index.html index.htm;
# Make site accessible from http://localhost/
@@
-70,6
+70,12
@@
server {
default_type text/plain;
}
default_type text/plain;
}
+ #Program error log
+ location ^~ /api/errorlog {
+ alias /var/log/mctxserv-error.log;
+ default_type text/plain;
+ }
+
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