added database redir from frond-end
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
gzip_comp_level 2;
|
||||
gzip_disable "msie6";
|
||||
gzip_buffers 16 8k;
|
||||
|
||||
#include snippets/ngx-backendredir.conf;
|
||||
|
||||
location / {
|
||||
#try_files $uri $uri/ =404;
|
||||
|
||||
@@ -12,7 +12,8 @@ gzip_types text/plain text/css text/xml text/javascript application/javascript a
|
||||
gzip_comp_level 2;
|
||||
gzip_disable "msie6";
|
||||
gzip_buffers 16 8k;
|
||||
|
||||
|
||||
#include snippets/ngx-backendredir.conf;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php$is_args$args;
|
||||
|
||||
@@ -8,6 +8,7 @@ mkdir -p /var/www/html /etc/nginx/sites-available /etc/nginx/sites-enabled /etc/
|
||||
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/nginx/config/nginx/fastcgi.conf -O /etc/nginx/fastcgi.conf
|
||||
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/nginx/config/nginx/fastcgi-php.conf -O /etc/nginx/snippets/fastcgi-php.conf
|
||||
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/nginx/config/nginx/snippets-ssl.conf -O /etc/nginx/snippets/ngx-ssl.conf
|
||||
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/nginx/config/nginx/snippets-backendredir.conf -O /etc/nginx/snippets/ngx-backendredir.conf
|
||||
wget -q -t7 "$repo"/raw/"$branchtype"/"$branch"/CoreModules/nginx/config/nginx/nginx-default.conf -O /etc/nginx/nginx.conf
|
||||
|
||||
if [ $domainwww = 1 ]; then
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
location /database {
|
||||
return 301 http://$hostname/backend/database;
|
||||
}
|
||||
Reference in New Issue
Block a user