|
@@ -243,12 +243,13 @@ if [ "$rewrite_yn" == 'n' ];then
|
|
|
else
|
|
|
echo
|
|
|
echo "Please input the rewrite of programme :"
|
|
|
- echo "${CMSG}wordpress${CEND},${CMSG}discuz${CEND},${CMSG}opencart${CEND},${CMSG}laravel${CEND},${CMSG}typecho${CEND},${CMSG}ecshop${CEND},${CMSG}drupal${CEND},${CMSG}joomla${CEND} rewrite was exist."
|
|
|
+ echo "${CMSG}wordpress${CEND},${CMSG}discuz${CEND},${CMSG}opencart${CEND},${CMSG}thinkphp${CEND},${CMSG}laravel${CEND},${CMSG}typecho${CEND},${CMSG}ecshop${CEND},${CMSG}drupal${CEND},${CMSG}joomla${CEND} rewrite was exist."
|
|
|
read -p "(Default rewrite: other):" rewrite
|
|
|
if [ "$rewrite" == "" ]; then
|
|
|
rewrite="other"
|
|
|
fi
|
|
|
- echo "You choose rewrite=${CMSG}$rewrite${CEND}"
|
|
|
+ echo "You choose rewrite=${CMSG}$rewrite${CEND}"
|
|
|
+ [ "$NGX_FLAG" == 'php' -a "$rewrite" == "thinkphp" ] && NGX_CONF=$(echo -e "location ~ \.php {\n #fastcgi_pass remote_php_ip:9000;\n fastcgi_pass unix:/dev/shm/php-cgi.sock;\n fastcgi_index index.php;\n include fastcgi_params;\n set \$real_script_name \$fastcgi_script_name;\n if (\$fastcgi_script_name ~ \"^(.+?\.php)(/.+)\$\") {\n set \$real_script_name \$1;\n set \$path_info \$2;\n }\n fastcgi_param SCRIPT_FILENAME \$document_root\$real_script_name;\n fastcgi_param SCRIPT_NAME \$real_script_name;\n fastcgi_param PATH_INFO \$path_info;\n }")
|
|
|
if [ -e "config/$rewrite.conf" ];then
|
|
|
/bin/cp config/$rewrite.conf $web_install_dir/conf/$rewrite.conf
|
|
|
else
|