fix(QuickUpload): nginx direct access alias
This commit is contained in:
parent
bb9dc0ee5d
commit
f8eddfd1d5
3 changed files with 10 additions and 6 deletions
|
@ -3,7 +3,9 @@
|
|||
return [
|
||||
'domain' => 'lefuturiste.fr',
|
||||
'modules' => [
|
||||
'modules' => [],
|
||||
'modules' => [
|
||||
'alias' => ['web-utils', 'utils', 'help-utils', 'help-modules', 'modules-list']
|
||||
],
|
||||
'random' => [],
|
||||
'date' => [
|
||||
'alias' => ['printdate']
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
location /file/ {
|
||||
alias {{ROOT_PATH}}/tmp/quickupload;
|
||||
autoindex off;
|
||||
}
|
||||
location /file/ {
|
||||
alias {{ROOT_PATH}}/tmp/quickupload/;
|
||||
autoindex off;
|
||||
}
|
||||
|
|
|
@ -2,10 +2,12 @@ server {
|
|||
index index.html index.php;
|
||||
root {{ROOT_PATH}};
|
||||
server_name {{SERVER_NAME}};
|
||||
|
||||
{{CUSTOM_CONFIG}}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$args;
|
||||
}
|
||||
{{CUSTOM_CONFIG}}
|
||||
location ^~ /wp-admin {
|
||||
return 403;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue