X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=tools%2Fapache2%2Fmkws-test;h=2b20e3784f576fefbf10798c6c322600855a7801;hb=7ae91e89f75695cdc3e41a68f56fac454643049a;hp=7dde2aa029221d7cefee7da271e644d519a4e8be;hpb=2fb712b40b54fdbb54fa7845e2e6007708f6e63b;p=mkws-moved-to-github.git diff --git a/tools/apache2/mkws-test b/tools/apache2/mkws-test index 7dde2aa..2b20e37 100644 --- a/tools/apache2/mkws-test +++ b/tools/apache2/mkws-test @@ -2,18 +2,22 @@ # pazpar2 / service proxy config - ServerName spclient.example.com - ServerAlias spclient-dev.indexdata.com mkws-dev.indexdata.com - ServerAdmin webmaster@example.com - ErrorLog /var/log/apache2/mkws-dev-error.log - CustomLog /var/log/apache2/mkws-dev-access.log combined + ServerName mkws-test.indexdata.com + ServerAlias mkws-test spclient-dev.indexdata.com + ServerAdmin webmaster@indexdata.com + ErrorLog /var/log/apache2/mkws-test-error.log + CustomLog /var/log/apache2/mkws-test-access.log combined RewriteEngine on RewriteLogLevel 1 - RewriteLog /var/log/apache2/mkws-dev-rewrite.log + RewriteLog /var/log/apache2/mkws-test-rewrite.log - DocumentRoot /home/indexdata/mkws/examples/htdocs - Alias /tools/htdocs /home/indexdata/mkws/tools/htdocs + DocumentRoot /home/indexdata/mkws-test/examples/htdocs + Alias /tools/htdocs /home/indexdata/mkws-test/tools/htdocs + + # CORS setting + Header set Access-Control-Allow-Credentials true + Header set Access-Control-Allow-Origin "*" # compress text output @@ -21,8 +25,12 @@ SetOutputFilter DEFLATE + # standard MKWS account RewriteRule /service-proxy-auth /service-proxy/?command=auth&action=login&username=mkws&password=mkws [P] # [NE,P] + # jasmine test account + RewriteRule /service-proxy-testauth /service-proxy/?command=auth&action=login&username=mkwstest&password=mkwstest [P] # [NE,P] + ProxyPass /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/ ProxyPassReverse /service-proxy/ http://mkc.indexdata.com:9009/service-proxy/