mirror of
https://github.com/YunoHost-Apps/opensondage_ynh.git
synced 2024-09-03 19:46:28 +02:00
path
This commit is contained in:
parent
4272925451
commit
0f7270dc41
2 changed files with 6 additions and 4 deletions
|
@ -4,6 +4,8 @@ location __PATH__/ {
|
|||
# Path to source
|
||||
alias __INSTALL_DIR__/;
|
||||
|
||||
client_max_body_size 20M;
|
||||
|
||||
rewrite "^__PATH__/([a-zA-Z0-9-]+)$" "__PATH__/studs.php?poll=$1";
|
||||
rewrite "^__PATH__/([a-zA-Z0-9-]+)/action/([a-zA-Z_-]+)/(.+)$" "__PATH__/studs.php?poll=$1&$2=$3";
|
||||
rewrite "^__PATH__/([a-zA-Z0-9-]+)/vote/([a-zA-Z0-9]{16})$" "__PATH__/studs.php?poll=$1&vote=$2";
|
||||
|
@ -13,7 +15,7 @@ location __PATH__/ {
|
|||
rewrite "^__PATH__/([a-zA-Z0-9-]{24})/admin/vote/([a-zA-Z0-9]{16})$" "__PATH__/adminstuds.php?poll=$1&vote=$2";
|
||||
rewrite "^__PATH__/([a-zA-Z0-9-]{24})/admin/action/([a-zA-Z_-]+)(/(.+))?$" "__PATH__/adminstuds.php?poll=$1&$2=$4";
|
||||
|
||||
index index.php;
|
||||
index index.html index.htm index.php;
|
||||
|
||||
try_files $uri $uri/ __PATH__/index.php;
|
||||
|
||||
|
|
|
@ -31,9 +31,9 @@ ram.runtime = "50M"
|
|||
[install.domain]
|
||||
type = "domain"
|
||||
|
||||
#[install.path]
|
||||
#type = "path"
|
||||
#default = "/date"
|
||||
[install.path]
|
||||
type = "path"
|
||||
default = "/date"
|
||||
|
||||
[install.init_main_permission]
|
||||
type = "group"
|
||||
|
|
Loading…
Add table
Reference in a new issue