Skip to content
Snippets Groups Projects
Commit 3f133f5e authored by Johan Holtz's avatar Johan Holtz :alien:
Browse files

Revert "Merge branch 'master' into 'master'"

This reverts commit f074c849, reversing
changes made to a82e147d.

Causes 404 on main page. Needs looking into
parent f074c849
No related branches found
No related tags found
No related merge requests found
...@@ -134,17 +134,28 @@ class knuth::nginx { ...@@ -134,17 +134,28 @@ class knuth::nginx {
# } # }
} }
nginx::resource::location { '~ ^/~': $proxies = {
'/' => 'http://localhost:8080', # Send to Roxen
'/foo/' => 'http://gibraltar:8081',
}
$proxies.each |$location, $target| {
nginx::resource::location{ $location:
server => 'www.lysator.liu.se', server => 'www.lysator.liu.se',
ssl => true, ssl => true,
proxy => $target, proxy => $target,
# Roxen generates http headers when redirecting, since we work
# unencrypted internally. It does however answer with
# www.lysator.liu.se (first instance). Second instance of
# www.lysator.liu.se is our external server name.
proxy_redirect => 'http://www.lysator.liu.se $scheme://www.lysator.liu.se', proxy_redirect => 'http://www.lysator.liu.se $scheme://www.lysator.liu.se',
} }
}
nginx::resource::location { '/': nginx::resource::location { '/static-test':
server => 'www.lysator.liu.se', server => 'www.lysator.liu.se',
ssl => true, ssl => true,
alias => '/srv/www/static', www_root => '/srv/www/static',
} }
# Not really neeed, but peoples automatic scanners complain, and # Not really neeed, but peoples automatic scanners complain, and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment