mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
made a lot of changes to accomodate running the same app for differnt projects.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName docker
|
||||
ServerAdmin c@nickyeoman.com
|
||||
DocumentRoot /var/www/html
|
||||
#ErrorLog /var/log/apache2/error.log
|
||||
#CustomLog /var/log/apache2/access.log combined
|
||||
# You need to use x-forward
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||||
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
|
||||
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
|
||||
CustomLog "/var/log/apache2/access.log" combined env=!forwarded
|
||||
CustomLog "/var/log/apache2/access.log" proxy env=forwarded
|
||||
|
||||
|
||||
<Directory /var/www/html>
|
||||
Options +Indexes +FollowSymLinks -MultiViews
|
||||
AllowOverride All
|
||||
Require all granted
|
||||
</Directory>
|
||||
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user