File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ if [[ -z "${PHP_VERSION}" ]]; then
221221fi
222222
223223cp $BP_DIR /conf/httpd.conf $APACHE_PATH /conf
224+ cp $BP_DIR /conf/httpd-old.conf $APACHE_PATH /conf
224225cp -r $BP_DIR /conf/mods-enabled $APACHE_PATH /conf
225226if [ -d .buildpack/apache/conf ]; then
226227 cp .buildpack/apache/conf/* $APACHE_PATH /conf/user
Original file line number Diff line number Diff line change 1+ # for documentation of the directives see http://httpd.apache.org/docs/2.2/mod/directives.html
2+ ErrorLog syslog
3+ LogLevel warn
4+
5+ Include /etc/apache2/mods-enabled/*.load
6+ Include /etc/apache2/mods-enabled/*.conf
7+
8+ ServerRoot /app/apache/
9+ ServerTokens Prod
10+ ServerName localhost
11+ Listen ${PORT}
12+
13+ LockFile logs/accept.lock
14+ PidFile logs/httpd.pid
15+
16+ KeepAlive Off
17+
18+ <Files ~ "^\.ht">
19+ Order allow,deny
20+ Deny from all
21+ Satisfy all
22+ </Files>
23+
24+ <Directory />
25+ Options FollowSymLinks
26+ AllowOverride None
27+ Order allow,deny
28+ Deny from all
29+ </Directory>
30+
31+ <Directory /app/php/box>
32+ AllowOverride None
33+ Options None
34+ Order Deny,Allow
35+ Allow from All
36+ Header always unset Content-Length
37+ </Directory>
38+
39+ SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
40+
41+ FastCGIExternalServer /app/php/box/php-fpm -socket /app/fcgi_sock -idle-timeout 120 -pass-header Authorization
42+ AddHandler php-fpm .php
43+ Action php-fpm /box
44+ Alias /box /app/php/box/php-fpm
45+
46+ Include conf/share/*.conf
47+ Include conf/local/*.conf
48+ Include conf/user/*.conf
Original file line number Diff line number Diff line change 4949# FIXME detect abnormal php-fpm exit
5050php5-fpm --fpm-config /app/php/php-fpm.ini &
5151phppid=$!
52- # apache2 -f /app/apache/conf/httpd.conf -D FOREGROUND &
53- /srv/www/httpd-2.2.31/bin/apachectl -f /app/apache/conf/httpd.conf -D FOREGROUND &
52+ apache2 -f /app/apache/conf/httpd-old .conf -D FOREGROUND &
53+ # /srv/www/httpd-2.2.31/bin/apachectl -f /app/apache/conf/httpd.conf -D FOREGROUND &
5454apachepid=$!
5555wait $apachepid
5656
You can’t perform that action at this time.
0 commit comments