2 # HTTPS server configuration
7 server_name pku.galaxysd.us galaxysd.no-ip.org;
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 {
28 location = /robots.txt {
35 #root /opt/galaxy/pku/html;
36 #index index.html index.htm index.php;
37 #try_files $uri $uri/ /index.php?$args;
41 if (!-f $request_filename) {
42 rewrite (.*) /blog/index.php;
46 #try_files $uri $uri/ /qa/index.php?$args;
47 if (!-e $request_filename) {
48 rewrite ^/qa/(.+)?$ /qa/index.php?qa-rewrite=$1 last;
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;
60 location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
65 location /gsd_status {