forked from dmoore056511/docker-pimcore-demo-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vhost.conf
39 lines (29 loc) · 1.24 KB
/
vhost.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<VirtualHost *:80>
ServerName localhost
# turn off mod_deflate for PHP requests, ... this is necessary because of a bug in mod_fastcgi
SetEnvIfNoCase Request_URI "\.(php)$" no-gzip dont-vary
DocumentRoot /var/www/
AddHandler php7.0-fcgi .php
Action php7.0-fcgi /php7.0-fcgi
Alias /php7.0-fcgi /usr/lib/cgi-bin/php7.0-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php7.0-fcgi -host 127.0.0.1:9001 -pass-header Authorization
<Directory /usr/lib/cgi-bin>
Options ExecCGI FollowSymLinks
SetHandler fastcgi-script
Require all granted
</Directory>
<Directory /var/www/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<LocationMatch "/(fpm-ping|fpm-status)">
SetHandler php7.0-fcgi
Action php7.0-fcgi /php7.0-fcgi virtual
Require local
Require ip 89.26.34.64/28
</LocationMatch>
RewriteEngine On
# this is needed to pass the auth header correctly - fastcgi environment
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
</VirtualHost>