mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/14497] Use nginx sample config in travis tests
PHPBB3-14497
This commit is contained in:
parent
37b2791837
commit
293a42e7c5
1 changed files with 7 additions and 15 deletions
|
@ -57,20 +57,12 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# nginx
|
# nginx
|
||||||
echo "
|
cat $DIR/../phpBB/docs/nginx.sample.conf \
|
||||||
server {
|
| sed "s/root \/path\/to\/phpbb/root $(echo $PHPBB_ROOT_PATH | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/&/\\\&/g')/g" \
|
||||||
listen 80;
|
| sed -e '1,/The actual board domain/d' \
|
||||||
root $PHPBB_ROOT_PATH/;
|
| sed -e '/If running php as fastcgi/,$d' \
|
||||||
index index.php index.html;
|
| sed -e "s/fastcgi_pass php;/fastcgi_pass unix:$(echo $APP_SOCK | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/&/\\\&/g');/g" \
|
||||||
|
| sed -e 's/#listen 80/listen 80/' \
|
||||||
location ~ \.php {
|
| sudo tee $NGINX_CONF
|
||||||
include fastcgi_params;
|
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
|
||||||
fastcgi_param PATH_INFO \$fastcgi_path_info;
|
|
||||||
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
|
|
||||||
fastcgi_pass unix:$APP_SOCK;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
" | sudo tee $NGINX_CONF > /dev/null
|
|
||||||
|
|
||||||
sudo service nginx start
|
sudo service nginx start
|
||||||
|
|
Loading…
Add table
Reference in a new issue