modified: n.fq
[GalaxyCodeBases.git] / etc / Server / nginx.pku.conf
blob67be0992685277f474b9f4231ea118d1ea21d941
2 # HTTPS server configuration
5 server {
6     listen       443;
7     server_name  pku.galaxysd.us galaxysd.no-ip.org;
9     ssl                  on;
10     ssl_certificate      /opt/galaxy/pku.cer;
11     ssl_certificate_key  /opt/galaxy/pku.key;
13 #    ssl_session_timeout  5m;
15 #    ssl_protocols  SSLv2 SSLv3 TLSv1;
16 #    ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
17 #    ssl_prefer_server_ciphers   on;
19     root        /opt/galaxy/pku/html;
20     index  index.html index.htm index.php;
21     try_files $uri $uri/ /index.php?$args;
23         location = /favicon.ico {
24                 log_not_found off;
25                 access_log off;
26         }
28         location = /robots.txt {
29                 allow all;
30                 log_not_found off;
31                 access_log off;
32         }
34     location / {
35         #root   /opt/galaxy/pku/html;
36         #index  index.html index.htm index.php;
37         #try_files $uri $uri/ /index.php?$args;
38     }
40     location /blog/ {
41         if (!-f $request_filename) {
42                 rewrite (.*) /blog/index.php;
43         }
44     }
45     location /qa/ {
46         #try_files $uri $uri/ /qa/index.php?$args;
47         if (!-e $request_filename) {
48                 rewrite ^/qa/(.+)?$ /qa/index.php?qa-rewrite=$1 last;
49         }
50     }
52     location ~ \.php$ {
53         include /etc/nginx/fastcgi.conf;
54         fastcgi_pass   unix:/var/run/php-fcgi.sock;
55         fastcgi_index  index.php;
56         fastcgi_param  HTTPS on;
57         fastcgi_param  SCRIPT_FILENAME   /opt/galaxy/pku/html$fastcgi_script_name;
58     }
60     location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
61         expires max;
62         log_not_found off;
63     }
65     location /gsd_status {
66         stub_status on;
67         access_log off;
68     }