blob: 9b7ab955c3cca26c093f39526312a9d4adce72b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
server {
listen 80;
server_name files.iamfabulous.de;
index index.html;
root /var/www/files/www;
#location / {
# autoindex on;
#}
error_page 404 /lolrndm.php;
error_page 401 /lolrndm.php;
location ~* \.php {
fastcgi_pass unix:/var/run/php5-fpm.sock;
include fastcgi_params;# SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_param SCRIPT_FILENAME $request_filename;
}
#try_files $URI /files.php;
location ~* ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {
rewrite ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /login.php?$1 last;
}
location ~* ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {
rewrite ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /register.php?$1 last;
}
location ~* ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {
rewrite ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /invite.php?$1 last;
}
location ~* \.php(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {
}
location / {
rewrite ^/([0-9a-zA-Z-_]*)/(.*) /index.php?name=$1&folder=$2 last;
rewrite ^/([0-9a-zA-Z-_]*) /index.php?name=$1&folder=$2 last;
break;
}
#rewrite ^/(.*) /files.php?$1 break;
#rewrite ^/(.*) https://$server_name/$1 permanent;
# location /admin {
# autoindex on;
# auth_basic "protected";
# auth_basic_user_file /etc/nginx/claudio.passwd;
# }
}
|