blob: 3306551b469530a5b5f95a533533ee2c33172ef2 [file] [log] [blame]
Chris Sosacf1b0682012-06-08 19:58:59 -07001# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# Sets up rewrite rules to have the devserver handle any requests that
6# don't map to an actual file.
7
8RewriteEngine on
Chris Sosabc5d0fa2013-07-11 14:14:45 -07009
10# Remove archive from any static/archive paths.
11RewriteCond %{REQUEST_URI} ^/static/archive
12RewriteRule ^static/archive(.*) http://127.0.0.1:8082/static$1 [proxy]
13
14# Re-direct any non-static requests to the devserver on 8080.
Chris Sosa8227c592012-06-28 16:58:15 -070015RewriteCond %{REQUEST_URI} !^/static
Chris Sosacf1b0682012-06-08 19:58:59 -070016RewriteRule ^(.*) http://127.0.0.1:8080/$1 [proxy]