blob: 51c59c2bdeb7b18783db8af2a4d66aef7f467b73 [file] [log] [blame]
# Copyright 2012 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Sets up rewrite rules to have the devserver handle any requests that
# don't map to an actual file.
RewriteEngine on
# Remove archive from any static/archive paths.
RewriteCond %{REQUEST_URI} ^/static/archive
RewriteRule ^static/archive(.*) http://127.0.0.1:8082/static$1 [proxy]
# Re-direct any non-static requests to the devserver on 8080.
RewriteCond %{REQUEST_URI} !^/static
RewriteRule ^(.*) http://127.0.0.1:8080/$1 [proxy]