fix: root path in nginx and forbid locations
This commit is contained in:
parent
14165f6e04
commit
09608ab8bb
2 changed files with 31 additions and 3 deletions
|
|
@ -20,10 +20,8 @@ foreach ($config['modules'] as $moduleName => $moduleConfig) {
|
|||
$domains = array_map(fn ($d) => $d . '.' . $config['domain'], $domains);
|
||||
$serverName = implode(' ', $domains);
|
||||
|
||||
$rootPath = $appBasePath . '/' . $domains[0];
|
||||
|
||||
$nginxConfig = $template;
|
||||
$nginxConfig = str_replace('{{ROOT_PATH}}', $rootPath, $nginxConfig);
|
||||
$nginxConfig = str_replace('{{ROOT_PATH}}', $appBasePath, $nginxConfig);
|
||||
$nginxConfig = str_replace('{{SERVER_NAME}}', $serverName, $nginxConfig);
|
||||
$nginxConfig = str_replace('{{PHP_SOCKET}}', $phpSocket, $nginxConfig);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue