mirror of
https://github.com/tim-krehan/shopping-list.git
synced 2024-11-27 15:40:00 +01:00
22 lines
785 B
Text
22 lines
785 B
Text
|
ServerName localhost
|
||
|
|
||
|
LoadModule deflate_module /usr/local/apache2/modules/mod_deflate.so
|
||
|
LoadModule rewrite_module /usr/local/apache2/modules/mod_rewrite.so
|
||
|
LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so
|
||
|
LoadModule proxy_fcgi_module /usr/local/apache2/modules/mod_proxy_fcgi.so
|
||
|
|
||
|
<VirtualHost *:80>
|
||
|
# Proxy .php requests to port 9000 of the php-fpm container
|
||
|
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://php:9000/var/www/html/$1
|
||
|
DocumentRoot /var/www/html/
|
||
|
<Directory /var/www/html/>
|
||
|
DirectoryIndex index.php
|
||
|
Options Indexes FollowSymLinks
|
||
|
AllowOverride All
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
|
||
|
# Send apache logs to stdout and stderr
|
||
|
CustomLog /proc/self/fd/1 common
|
||
|
ErrorLog /proc/self/fd/2
|
||
|
</VirtualHost>
|