-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from mrdavidlaing/master
Update to nginx 1.7.4 (with ssl support)
- Loading branch information
Showing
9 changed files
with
65 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<html> | ||
<body> | ||
<p>The iframe below should show https://www.google.it/intl/en/policies/?fg=1 proxied via /intl/en/policies</p> | ||
<iframe src="/intl/en/policies"></iframe> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
worker_processes 1; | ||
daemon off; | ||
|
||
error_log <%= ENV["APP_ROOT"] %>/nginx/logs/error.log; | ||
events { worker_connections 1024; } | ||
|
||
http { | ||
log_format cloudfoundry '$http_x_forwarded_for - $http_referer - [$time_local] "$request" $status $body_bytes_sent'; | ||
access_log <%= ENV["APP_ROOT"] %>/nginx/logs/access.log cloudfoundry; | ||
default_type application/octet-stream; | ||
include mime.types; | ||
sendfile on; | ||
gzip on; | ||
tcp_nopush on; | ||
keepalive_timeout 30; | ||
|
||
server { | ||
listen <%= ENV["PORT"] %>; | ||
server_name localhost; | ||
|
||
location /intl/en/policies { | ||
proxy_pass "https://www.google.it/intl/en/policies/?fg=1"; | ||
} | ||
|
||
location / { | ||
root <%= ENV["APP_ROOT"] %>/public; | ||
index index.html index.htm Default.htm; | ||
<% if File.exists?(File.join(ENV["APP_ROOT"], "nginx/conf/.enable_directory_index")) %> | ||
autoindex on; | ||
<% end %> | ||
<% if File.exists?(auth_file = File.join(ENV["APP_ROOT"], "nginx/conf/.htpasswd")) %> | ||
auth_basic "Restricted"; #For Basic Auth | ||
auth_basic_user_file <%= auth_file %>; #For Basic Auth | ||
<% end %> | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.