Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(220)

Unified Diff: config/nginx-site.template

Issue 8640044: Apache support
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: config/nginx-site.template
=== removed file 'config/nginx-site.template'
--- config/nginx-site.template 2013-02-05 16:09:54 +0000
+++ config/nginx-site.template 1970-01-01 00:00:00 +0000
@@ -1,35 +0,0 @@
-server {
- listen 127.0.0.1:{{port}} default_server;
- server_name _;
- root {{server_root}};
- index index.html;
-
- # Serve static assets.
- location ^~ /juju-ui/ {
- root {{server_root}};
- }
- location = /favicon.ico {
- expires 10d;
- root {{server_root}};
- }
- location = /index.html {
- root {{server_root}};
- }
-
- {{if serve_tests}}
- # Serve unit tests.
- location ^~ /test/ {
- alias {{tests_root}};
- }
- {{else}}
- # Redirect to site root so that the test URL does not directly
- # reference the manifest file. This avoids automatically adding the URL
- # to the application cache.
- rewrite ^/test/ $scheme://$host/ redirect;
- {{endif}}
-
- # Fall through to the single-page app for all other URLs.
- location ~ / {
- rewrite .* /index.html last;
- }
-}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b