mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
iiab.conf.j2: modify config to route /usb/upload/*.php to the upload2usb app!
This commit is contained in:
parent
ad175fb3ca
commit
91533f5fb3
1 changed files with 14 additions and 1 deletions
|
@ -5,7 +5,20 @@ location / {
|
|||
location /usb {
|
||||
alias /library/www/html/local_content/;
|
||||
fancyindex on; # autoindex on;
|
||||
add_before_body /usb/upload/button.html;
|
||||
add_before_body /usb/upload/button.html;
|
||||
}
|
||||
|
||||
location ~ ^/usb/upload/(.*)\.php$ {
|
||||
alias /library/www/html/local_content/upload/$1.php;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header Host $host;
|
||||
fastcgi_pass php;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
|
||||
include fastcgi_params;
|
||||
}
|
||||
|
||||
location /local_content/ {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue