mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
402 B
14 lines
402 B
2 years ago
|
location / {
|
||
|
#Redirect everything that isn't a real file to index.php
|
||
|
try_files $uri $uri/ /index.php$is_args$args;
|
||
|
}
|
||
|
#If you want a single domain name at the front and back ends
|
||
|
location /admin {
|
||
|
try_files $uri $uri/ /admin/index.php$is_args$args;
|
||
|
}
|
||
|
location /mobile {
|
||
|
try_files $uri $uri/ /mobile/index.php$is_args$args;
|
||
|
}
|
||
|
location /api {
|
||
|
try_files $uri $uri/ /api/index.php$is_args$args;
|
||
|
}
|