Scott Zawalski | a5745e9 | 2013-05-09 10:42:27 -0400 | [diff] [blame] | 1 | RewriteEngine On |
| 2 | |
| 3 | # This rule is meant for autotest installations under a single directory, |
| 4 | # such as when pulling the code from git or from a tarball. |
| 5 | RewriteCond /usr/local/autotest/frontend/client/www/autotest.AfeClient -d |
| 6 | RewriteRule ^/afe((?!\/server\/).*)$ /usr/local/autotest/frontend/client/www/autotest.AfeClient/$1 |
| 7 | |
| 8 | # This rule is meant for autotest installations from a package such as RPM. |
| 9 | RewriteCond /usr/share/autotest/frontend/client/www/autotest.AfeClient -d |
| 10 | RewriteRule ^/afe((?!\/server\/).*)$ /usr/share/autotest/frontend/client/www/autotest.AfeClient/$1 |
| 11 | |
mbligh | 1201665 | 2008-10-03 17:50:54 +0000 | [diff] [blame] | 12 | <Location "/afe"> |
| 13 | DirectoryIndex AfeClient.html |
Moises Osorio | 2dda22e | 2014-09-16 15:56:24 -0700 | [diff] [blame] | 14 | # Allow all requests from localhost or corp.google.com subdomains with any port |
Moises Osorio | f907a98 | 2014-09-30 11:05:14 -0700 | [diff] [blame] | 15 | SetEnvIf Origin "^http(s)?://(localhost|([^/]+\.)?corp\.google\.com)(:[0-9]+)?$" \ |
| 16 | AccessControlAllowOriginValue=$0 AccessControlAllowCredentialsValue=true |
| 17 | Header set Access-Control-Allow-Origin %{AccessControlAllowOriginValue}e \ |
| 18 | env=AccessControlAllowOriginValue |
| 19 | Header set Access-Control-Allow-Credentials %{AccessControlAllowCredentialsValue}e \ |
| 20 | env=AccessControlAllowCredentialsValue |
Scott Zawalski | a5745e9 | 2013-05-09 10:42:27 -0400 | [diff] [blame] | 21 | <IfVersion >= 2.4> |
| 22 | Require all granted |
| 23 | </IfVersion> |
mbligh | 1201665 | 2008-10-03 17:50:54 +0000 | [diff] [blame] | 24 | </Location> |