Skip to content

Commit

Permalink
Basic demo setup, probably non-functional.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Jan 6, 2012
1 parent e149592 commit ff3d618
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 24 deletions.
7 changes: 0 additions & 7 deletions wre/var/setupfiles/demo.modperl

This file was deleted.

17 changes: 0 additions & 17 deletions wre/var/setupfiles/demo.modproxy

This file was deleted.

67 changes: 67 additions & 0 deletions wre/var/setupfiles/demo.nginx
@@ -0,0 +1,67 @@
server {
listen [% modproxyPort %];
server_name [% sitename %] [% domain %];
access_log [% domainRoot %]/[% sitename %]/logs/access.log combined

client_max_body_size 20M;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;

# block IIS related attacks from getting to WebGUI
location = /^scripts/ {
return 400
}

location = /^default.ida/ {
return 400
}

location = /_vti_bin/ {
return 400
}

location = /_mem_bin/ {
return 400
}

# proxy webgui pages
#ProxyPreserveHost On
#RewriteRule ^/(.*) http://127.0.0.1:[% modperlPort %]/$1 [P]
}

# Uncomment the following lines to enable SSL for this host. Also,
# change the 10.0.0.1 to the IP address you wish to bind the SSL host
# to.

#server {
# listen 443;
# server_name [% sitename %] [% domain %];
# access_log [% domainRoot %]/[% sitename %]/logs/access.log combined
#
# client_max_body_size 20M;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header Host $host;
#
# # block IIS related attacks from getting to WebGUI
# location = /^scripts/ {
# return 400
# }
#
# location = /^default.ida/ {
# return 400
# }
#
# location = /_vti_bin/ {
# return 400
# }
#
# location = /_mem_bin/ {
# return 400
# }
#
# # For chained certificates, concatenate all the certs together, starting with the
# # site certificate and then the chained certificates
# ssl_certificate [% domainRoot %]/[% sitename %]/certs/server.crt
# ssl_certificate_key [% domainRoot %]/[% sitename %]/certs/server.key
#
#}

0 comments on commit ff3d618

Please sign in to comment.