Apache updates
This commit is contained in:
parent
ca6be9b072
commit
2687a23a8e
|
|
@ -31,9 +31,6 @@ RUN sed -i 's/LoadModule mpm_prefork_module/#LoadModule mpm_prefork_module/g' /e
|
|||
|
||||
COPY vhost.conf /etc/apache2/conf.d/vhost.conf
|
||||
|
||||
ENV APACHE_UID 100
|
||||
ENV APACHE_GID 101
|
||||
|
||||
# Define Grav specific version of Grav or use latest stable
|
||||
ENV GRAV_VERSION latest
|
||||
|
||||
|
|
@ -56,7 +53,7 @@ USER root
|
|||
# provide container inside image for data persistence
|
||||
VOLUME ["/var/www"]
|
||||
|
||||
COPY run.sh /run.sh
|
||||
RUN chmod u+x /run.sh
|
||||
COPY run.sh /run.sh
|
||||
RUN chmod u+x /run.sh
|
||||
|
||||
CMD ["/run.sh"]
|
||||
CMD ["/run.sh"]
|
||||
|
|
@ -10,7 +10,7 @@ ServerName localhost
|
|||
AccessFileName .htaccess.local .htaccess
|
||||
|
||||
## PHP-FPM connection
|
||||
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://php:9000/var/www/html/$1
|
||||
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/var/www/html/$1
|
||||
DirectoryIndex index.php
|
||||
|
||||
## Directories,
|
||||
|
|
@ -32,11 +32,11 @@ ServerName localhost
|
|||
Require all granted
|
||||
|
||||
<FilesMatch ".+(\.php)$">
|
||||
SetHandler "proxy:fcgi://php:9000"
|
||||
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
||||
</FilesMatch>
|
||||
</Directory>
|
||||
|
||||
<Proxy "fcgi://php:9000">
|
||||
<Proxy "fcgi://127.0.0.1:9000">
|
||||
ProxySet timeout=1200
|
||||
</Proxy>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue