Skip to content

Commit

Permalink
Merge pull request #4662 from IQSS/4661-fix-httpd
Browse files Browse the repository at this point in the history
move docker-aio httpd.conf out of a directory excluded from version c…
  • Loading branch information
kcondon committed May 14, 2018
2 parents c46cca5 + ec68595 commit 355888d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion conf/docker-aio/c7.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY testdata/solrconfig.xml /tmp/dv
# IPv6 and localhost appears to be related to some of the intermittant connection issues
COPY disableipv6.conf /etc/sysctl.d/
RUN rm /etc/httpd/conf/*
COPY testdata/httpd.conf /etc/httpd/conf
COPY httpd.conf /etc/httpd/conf
RUN cd /opt ; tar zxf /tmp/dv/deps/solr-7.3.0dv.tgz
RUN cd /opt ; tar zxf /tmp/dv/deps/glassfish4dv.tgz

Expand Down
30 changes: 30 additions & 0 deletions conf/docker-aio/httpd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

Include conf.d/*.conf
Include conf.modules.d/*.conf
ServerName localhost
Listen 80 443
PidFile run/httpd.pid
DocumentRoot "/var/www/html"
TypesConfig /etc/mime.types
User apache
Group apache

<VirtualHost *:80>
ServerName localhost
LogLevel debug
ErrorLog logs/error_log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
CustomLog logs/access_log combined

# proxy config (aka - what to send to glassfish or not)
ProxyPassMatch ^/RApacheInfo$ !
ProxyPassMatch ^/custom !
ProxyPassMatch ^/dataexplore !
ProxyPassMatch ^/Shibboleth.sso !
ProxyPassMatch ^/shibboleth-ds !
# pass everything else to Glassfish
ProxyPass / ajp://localhost:8009/
# glassfish can be slow sometimes
ProxyTimeout 300

</VirtualHost>

0 comments on commit 355888d

Please sign in to comment.