1234567891011121314151617181920212223242526272829 |
- server {
- listen 80;
- server_name localhost;
- #charset koi8-r;
- access_log /var/log/nginx/host.access.log main;
- gzip on;
- gzip_min_length 1k;
- gzip_buffers 4 16k;
- gzip_comp_level 8;
- gzip_types text/plain application/javascript application/x-javascript text/css application/json text/javascript application/x-httpd-php image/jpeg image/gif image/png;
- gzip_vary off;
- gzip_disable "MSIE [1-6]\.";
- location / {
- root /usr/share/nginx/html;
- index start.html index.html;
- }
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80
- #
- location /api {
- proxy_pass http://server:8084;
- }
- location /download {
- proxy_pass http://server:8084;
- }
- }
|