-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
44 lines (39 loc) · 1.4 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log /nfs/public/rw/webadmin/tomcat/bases/pride/tc-pst-webdist-dev/error.log info;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
access_log /tmp/access.log;
#error_log /nfs/public/rw/webadmin/tomcat/bases/pride/tc-pst-webdist-dev/logs/error.log;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 8080;
server_name localhost;
if ($request_uri ~* "/pride/archive/usi-viewer$") {
rewrite ^(.*)$ $scheme://$http_host$1/ permanent;
}
location /pride/archive/usi-viewer {
proxy_set_header X-URL $scheme://$host$request_uri;
gzip on;
gzip_types text/plain application/xml text/javascript application/javascript application/x-javascript text/css application/json application/octet-stream image/jpeg image/png image/gif;
expires 3600;
root /usr/share/;
try_files $uri $uri/ /pride/archive/usi-viewer/index.html;
#error_page 404 /404.html;
}
}
}