File tree 1 file changed +14
-10
lines changed
1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change
1
+ ##Force all domain requests, mysite.com, to go to www.mysite.com
1
2
server {
2
- server_name [% sitename %] [%domain %];
3
+ server_name [% domain %];
4
+ rewrite ^ $scheme://[% sitename %]$request_uri redirect;
5
+ }
6
+
7
+ server {
8
+ server_name [% sitename %];
3
9
4
10
listen [% config.get('nginx/port') %]; ## listen for ipv4
5
11
@@ -58,17 +64,15 @@ server {
58
64
# proxy_set_header Host $host;
59
65
# proxy_pass http://127.0.0.1:[% config.get('starman/port') %];
60
66
# }
61
- # location /uploads {
62
- # expires 2h;
63
- # if ( $request_filename ~ "^(.*/)" ) {
64
- # set $request_directory $document_root$1;
65
- # }
66
- # if ( -f "$request_directory/.wgaccess" ) {
67
- # proxy_pass http://127.0.0.1:[% config.get('starman/port') %];
68
- # }
67
+ #
68
+ # location /extras/ {
69
+ # add_header Cache-Control public;
70
+ # expires 24h;
71
+ # root /data/WebGUI/www/extras;
72
+ # add_header Access-Control-Allow-Origin *;
69
73
# }
74
+ #
70
75
# location /uploads/filepump { expires max; }
71
- # location /extras/ { expires 24h; }
72
76
# location = /default.ida { access_log off; deny all; }
73
77
# location /_vti_bin { access_log off; deny all; }
74
78
# location /_mem_bin { access_log off; deny all; }
You can’t perform that action at this time.
0 commit comments