|
@@ -0,0 +1,40 @@
|
|
1
|
+server {
|
|
2
|
+ listen 80;
|
|
3
|
+ listen 443 default_server ssl;
|
|
4
|
+
|
|
5
|
+ ssl_certificate /var/sites/ianonavy.com/ssl/unified.crt;
|
|
6
|
+ ssl_certificate_key /var/sites/ianonavy.com/ssl/ssl-decrypted.key;
|
|
7
|
+
|
|
8
|
+ server_name *.ianonavy.com ianonavy.com www.ianonavy.com;
|
|
9
|
+
|
|
10
|
+ access_log /var/log/nginx/ianonavy.access.log;
|
|
11
|
+ error_log /var/log/nginx/ianonavy.error.log;
|
|
12
|
+
|
|
13
|
+ if ($host != 'ianonavy.com') {
|
|
14
|
+ rewrite ^/(.*)$ http://ianonavy.com/$1 permanent;
|
|
15
|
+ }
|
|
16
|
+
|
|
17
|
+ root /var/sites/ianonavy.com/www;
|
|
18
|
+
|
|
19
|
+ location = /robots.txt {
|
|
20
|
+ alias /var/www/robots/all/robots.txt;
|
|
21
|
+ }
|
|
22
|
+
|
|
23
|
+ location /static/ { # STATIC_URL
|
|
24
|
+ alias /var/sites/ianonavy.com/www/src/static/; # STATIC_ROOT
|
|
25
|
+ expires off;
|
|
26
|
+ }
|
|
27
|
+
|
|
28
|
+ location = /google9677fb7678857b96.html {
|
|
29
|
+ rewrite ^/(.*) $1;
|
|
30
|
+ return 200 "google-site-verification: google9677fb7678857b96.html";
|
|
31
|
+ }
|
|
32
|
+
|
|
33
|
+ location / { try_files $uri @ianonavy; }
|
|
34
|
+ location @ianonavy {
|
|
35
|
+ include fastcgi_params;
|
|
36
|
+ fastcgi_param PATH_INFO $fastcgi_script_name;
|
|
37
|
+ fastcgi_param SCRIPT_NAME "";
|
|
38
|
+ fastcgi_pass unix:/tmp/ianonavy-fcgi.sock;
|
|
39
|
+ }
|
|
40
|
+}
|