Skip to content

Commit 812d9db

Browse files
committed
Restore old config
1 parent b1db64f commit 812d9db

3 files changed

Lines changed: 51 additions & 2 deletions

File tree

‎bin/compile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ if [[ -z "${PHP_VERSION}" ]]; then
221221
fi
222222

223223
cp $BP_DIR/conf/httpd.conf $APACHE_PATH/conf
224+
cp $BP_DIR/conf/httpd-old.conf $APACHE_PATH/conf
224225
cp -r $BP_DIR/conf/mods-enabled $APACHE_PATH/conf
225226
if [ -d .buildpack/apache/conf ]; then
226227
cp .buildpack/apache/conf/* $APACHE_PATH/conf/user

‎conf/httpd-old.conf‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

‎support/boot.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ fi
4949
# FIXME detect abnormal php-fpm exit
5050
php5-fpm --fpm-config /app/php/php-fpm.ini &
5151
phppid=$!
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 &
5454
apachepid=$!
5555
wait $apachepid
5656

0 commit comments

Comments
 (0)