From 94ed1b0b4ae737c27b08dc859048d2c01ccfc172 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Thu, 5 Aug 2021 01:28:44 +0700 Subject: [PATCH] Update init_nginx.conf --- init_nginx.conf | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/init_nginx.conf b/init_nginx.conf index 9346577..784b31a 100644 --- a/init_nginx.conf +++ b/init_nginx.conf @@ -1,29 +1,29 @@ -server { - root ~/public_html/public; - location /phpmyadmin/ { - root ~/public_html/; - location ~ \.php(/|$) { - try_files $uri =404; - fastcgi_pass localhost:1234; + server { + root ~/public_html/public; + location /phpmyadmin/ { + root ~/public_html/; + location ~ \.php(/|$) { + try_files $uri =404; + fastcgi_pass localhost:1234; + } + } + location /phppgadmin/ { + root ~/public_html/; + location ~ \.php(/|$) { + try_files $uri =404; + fastcgi_pass localhost:1234; + } + } + location /webssh/ { + passenger_app_root ~/public_html/webssh; + passenger_enabled on; + passenger_app_start_command "python run.py --port=$PORT"; + passenger_base_uri "/webssh"; + rewrite ^/webssh/(.*)$ /$1 break; + passenger_document_root ~/public_html/webssh/webssh/static; } - } - location /phppgadmin/ { - root ~/public_html/; location ~ \.php(/|$) { try_files $uri =404; fastcgi_pass localhost:1234; } } - location /webssh/ { - passenger_app_root ~/public_html/webssh; - passenger_enabled on; - passenger_app_start_command "python run.py --port=$PORT"; - passenger_base_uri "/webssh"; - rewrite ^/webssh/(.*)$ /$1 break; - passenger_document_root ~/public_html/webssh/webssh/static; - } - location ~ \.php(/|$) { - try_files $uri =404; - fastcgi_pass localhost:1234; - } -}