2014-06-15 22:43:38 +02:00
|
|
|
location PATHTOCHANGE {
|
2014-06-13 17:53:15 +02:00
|
|
|
alias ALIASTOCHANGE;
|
2014-06-15 22:45:03 +02:00
|
|
|
|
2014-06-16 10:48:07 +02:00
|
|
|
try_files $uri $uri/ @yourls;
|
2014-06-16 10:43:17 +02:00
|
|
|
|
2014-06-13 15:06:28 +02:00
|
|
|
index index.php index.html index.htm;
|
|
|
|
default_type text/html;
|
2014-06-15 22:36:13 +02:00
|
|
|
|
2014-06-16 10:48:07 +02:00
|
|
|
location @yourls {
|
|
|
|
rewrite ^(.*)$ /yourls-loader.php;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ .php$ {
|
|
|
|
fastcgi_split_path_info ^(.+.php)(/.+)$;
|
|
|
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
|
|
|
fastcgi_index index.php;
|
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
include fastcgi_params;
|
|
|
|
}
|
|
|
|
|
|
|
|
location ~ /.ht {
|
|
|
|
deny all;
|
|
|
|
}
|
2014-06-13 07:30:00 +02:00
|
|
|
|
2014-06-16 07:19:09 +02:00
|
|
|
|
2014-06-13 07:30:00 +02:00
|
|
|
# Include SSOWAT user panel.
|
|
|
|
include conf.d/yunohost_panel.conf.inc;
|
2014-06-13 15:06:28 +02:00
|
|
|
}
|