|
@@ -68,12 +68,12 @@ sed -i "s@/usr/local/nginx@$tengine_install_dir@g" /etc/init.d/nginx
|
|
|
|
|
|
mv $tengine_install_dir/conf/nginx.conf{,_bk}
|
|
|
if [[ $Apache_version =~ ^[1-2]$ ]];then
|
|
|
- /bin/cp config/nginx_apache.conf $nginx_install_dir/conf/nginx.conf
|
|
|
+ /bin/cp config/nginx_apache.conf $tengine_install_dir/conf/nginx.conf
|
|
|
elif [[ $Tomcat_version =~ ^[1-2]$ ]] && [ ! -e "$php_install_dir/bin/php" ];then
|
|
|
- /bin/cp config/nginx_tomcat.conf $nginx_install_dir/conf/nginx.conf
|
|
|
+ /bin/cp config/nginx_tomcat.conf $tengine_install_dir/conf/nginx.conf
|
|
|
else
|
|
|
- /bin/cp config/nginx.conf $nginx_install_dir/conf/nginx.conf
|
|
|
- [ "$PHP_yn" == 'y' ] && [ -z "`grep '/php-fpm_status' $nginx_install_dir/conf/nginx.conf`" ] && sed -i "s@index index.html index.php;@index index.html index.php;\n location ~ /php-fpm_status {\n #fastcgi_pass remote_php_ip:9000;\n fastcgi_pass unix:/dev/shm/php-cgi.sock;\n fastcgi_index index.php;\n include fastcgi.conf;\n allow 127.0.0.1;\n deny all;\n }@" $nginx_install_dir/conf/nginx.conf
|
|
|
+ /bin/cp config/nginx.conf $tengine_install_dir/conf/nginx.conf
|
|
|
+ [ "$PHP_yn" == 'y' ] && [ -z "`grep '/php-fpm_status' $tengine_install_dir/conf/nginx.conf`" ] && sed -i "s@index index.html index.php;@index index.html index.php;\n location ~ /php-fpm_status {\n #fastcgi_pass remote_php_ip:9000;\n fastcgi_pass unix:/dev/shm/php-cgi.sock;\n fastcgi_index index.php;\n include fastcgi.conf;\n allow 127.0.0.1;\n deny all;\n }@" $tengine_install_dir/conf/nginx.conf
|
|
|
fi
|
|
|
cat > $tengine_install_dir/conf/proxy.conf << EOF
|
|
|
proxy_connect_timeout 300s;
|