blob: d1cf1e19b3f9a0c6a5550abffc29fc68f2877c50 [file] [log] [blame]
Scott Zawalskia5745e92013-05-09 10:42:27 -04001RewriteEngine 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.
5RewriteCond /usr/local/autotest/frontend/client/www/autotest.AfeClient -d
6RewriteRule ^/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.
9RewriteCond /usr/share/autotest/frontend/client/www/autotest.AfeClient -d
10RewriteRule ^/afe((?!\/server\/).*)$ /usr/share/autotest/frontend/client/www/autotest.AfeClient/$1
11
mbligh12016652008-10-03 17:50:54 +000012<Location "/afe">
13 DirectoryIndex AfeClient.html
Moises Osorio2dda22e2014-09-16 15:56:24 -070014 # Allow all requests from localhost or corp.google.com subdomains with any port
Moises Osoriof907a982014-09-30 11:05:14 -070015 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 Zawalskia5745e92013-05-09 10:42:27 -040021 <IfVersion >= 2.4>
22 Require all granted
23 </IfVersion>
mbligh12016652008-10-03 17:50:54 +000024</Location>