X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=tools%2Fapache2%2Fjasmine-dev.template;h=d1f22792d36e4889146c40e1f0b29faf3ae19642;hb=65ff8e8f52477c4b03f392bb8a6c0f6190c02870;hp=36c99b94f850409d69c4cc1714b0daf9b2b1bc6c;hpb=d0bd4aea18a9c6384e94da3e00151da21e384858;p=mkws-moved-to-github.git diff --git a/tools/apache2/jasmine-dev.template b/tools/apache2/jasmine-dev.template index 36c99b9..d1f2279 100644 --- a/tools/apache2/jasmine-dev.template +++ b/tools/apache2/jasmine-dev.template @@ -1,20 +1,50 @@ # Configuration for the apache web server -*- apache -*- +##################################################################### +# global apache2 config +# +User ${APACHE_RUN_USER} +Group ${APACHE_RUN_GROUP} +PidFile ${APACHE_PID_FILE} + +ServerRoot ${APACHE_SERVER_ROOT} +NameVirtualHost *:${APACHE_PORT} +Listen ${APACHE_PORT} + +LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined + +Include /etc/apache2/mods-available/alias.load +Include /etc/apache2/mods-available/authz*.load +Include /etc/apache2/mods-available/proxy*.load +Include /etc/apache2/mods-available/rewrite.load +Include /etc/apache2/mods-available/headers.load +Include /etc/apache2/mods-available/mime.load +Include /etc/apache2/mods-available/deflate.load + +Include /etc/apache2/mods-available/alias*.conf +Include /etc/apache2/mods-available/authz*.conf +Include /etc/apache2/mods-available/proxy*.conf +Include /etc/apache2/mods-available/mime.conf +Include /etc/apache2/mods-available/deflate.conf + # pazpar2 / service proxy config - - ServerName mkws-dev.indexdata.com - ServerAlias mkws-dev a.mkws.indexdata.com a.mkws-dev.indexdata.com + + ServerName localhost + ServerAlias mkws-dev a.mkws.indexdata.com a.mkws-dev.indexdata.com mkws-dev.indexdata.com 127.0.0.1 ServerAdmin webmaster@indexdata.com - ErrorLog /var/log/apache2/mkws-dev-error.log - CustomLog /var/log/apache2/mkws-dev-access.log combined + ErrorLog ${APACHE_LOG_DIR}/mkws-jasmine-error.log + CustomLog ${APACHE_LOG_DIR}/mkws-jasmine-access.log combined RewriteEngine on RewriteLogLevel 1 - RewriteLog /var/log/apache2/mkws-dev-rewrite.log + RewriteLog ${APACHE_LOG_DIR}/mkws-jasmine-rewrite.log - DocumentRoot /home/indexdata/mkws-dev/examples/htdocs - Alias /tools/htdocs /home/indexdata/mkws-dev/tools/htdocs + DocumentRoot ${MKWS_ROOT}/examples/htdocs + Alias /tools/htdocs ${MKWS_ROOT}/tools/htdocs + Alias /src ${MKWS_ROOT}/src + Alias /test ${MKWS_ROOT}/test + Alias /jasmine ${MKWS_ROOT}/examples/jasmine # CORS setting Header set Access-Control-Allow-Credentials true