Skip to content

Commit ff3d618

Browse files
committedJan 6, 2012
Basic demo setup, probably non-functional.
1 parent e149592 commit ff3d618

File tree

3 files changed

+67
-24
lines changed

3 files changed

+67
-24
lines changed
 

‎wre/var/setupfiles/demo.modperl

-7
This file was deleted.

‎wre/var/setupfiles/demo.modproxy

-17
This file was deleted.

‎wre/var/setupfiles/demo.nginx

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
server {
2+
listen [% modproxyPort %];
3+
server_name [% sitename %] [% domain %];
4+
access_log [% domainRoot %]/[% sitename %]/logs/access.log combined
5+
6+
client_max_body_size 20M;
7+
proxy_set_header X-Real-IP $remote_addr;
8+
proxy_set_header Host $host;
9+
10+
# block IIS related attacks from getting to WebGUI
11+
location = /^scripts/ {
12+
return 400
13+
}
14+
15+
location = /^default.ida/ {
16+
return 400
17+
}
18+
19+
location = /_vti_bin/ {
20+
return 400
21+
}
22+
23+
location = /_mem_bin/ {
24+
return 400
25+
}
26+
27+
# proxy webgui pages
28+
#ProxyPreserveHost On
29+
#RewriteRule ^/(.*) http://127.0.0.1:[% modperlPort %]/$1 [P]
30+
}
31+
32+
# Uncomment the following lines to enable SSL for this host. Also,
33+
# change the 10.0.0.1 to the IP address you wish to bind the SSL host
34+
# to.
35+
36+
#server {
37+
# listen 443;
38+
# server_name [% sitename %] [% domain %];
39+
# access_log [% domainRoot %]/[% sitename %]/logs/access.log combined
40+
#
41+
# client_max_body_size 20M;
42+
# proxy_set_header X-Real-IP $remote_addr;
43+
# proxy_set_header Host $host;
44+
#
45+
# # block IIS related attacks from getting to WebGUI
46+
# location = /^scripts/ {
47+
# return 400
48+
# }
49+
#
50+
# location = /^default.ida/ {
51+
# return 400
52+
# }
53+
#
54+
# location = /_vti_bin/ {
55+
# return 400
56+
# }
57+
#
58+
# location = /_mem_bin/ {
59+
# return 400
60+
# }
61+
#
62+
# # For chained certificates, concatenate all the certs together, starting with the
63+
# # site certificate and then the chained certificates
64+
# ssl_certificate [% domainRoot %]/[% sitename %]/certs/server.crt
65+
# ssl_certificate_key [% domainRoot %]/[% sitename %]/certs/server.key
66+
#
67+
#}

0 commit comments

Comments
 (0)
Please sign in to comment.