Skip to content

Commit 2e6e406

Browse files
authored
2664 [Bug] File Manager under Development Mode (hestiacp#2682)
* Update nginx.conf to resolve issues with Filemanger in development mode https://serverfault.com/questions/694449/php-in-nginx-directory-alias-not-working * Update hestia-nginx version
1 parent 008b4b1 commit 2e6e406

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/deb/nginx/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Source: hestia-nginx
22
Package: hestia-nginx
33
Priority: optional
4-
Version: 1.22.0
4+
Version: 1.23.0
55
Section: admin
66
Maintainer: HestiaCP <info@hestiacp.com>
77
Homepage: https://www.hestiacp.com

src/deb/nginx/nginx.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ http {
133133
location /fm/ {
134134
alias /usr/local/hestia/web/fm/dist/;
135135
index index.php;
136+
location ~ /([^/]+\.php)$ {
137+
try_files /$1 =404;
138+
fastcgi_pass unix:/var/run/hestia-php.sock;
139+
fastcgi_index index.php;
140+
include fastcgi_params;
141+
fastcgi_param SCRIPT_FILENAME /usr/local/hestia/web/fm/dist/index.php;
142+
}
136143
}
137144

138145
location ~ \.php$ {

0 commit comments

Comments
 (0)