diff --git a/roles/nginx/templates/iiab.conf.j2 b/roles/nginx/templates/iiab.conf.j2
index df2fc6a94..e3fdee774 100644
--- a/roles/nginx/templates/iiab.conf.j2
+++ b/roles/nginx/templates/iiab.conf.j2
@@ -5,10 +5,25 @@ location / {
location /usb {
alias /library/www/html/local_content/;
fancyindex on; # autoindex on;
+ 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/ {
fancyindex on; # autoindex on;
+ add_before_body /usb/upload/button.html;
}
location /info {
diff --git a/roles/usb_lib/files/upload/button.html b/roles/usb_lib/files/upload/button.html
new file mode 100644
index 000000000..658f74fb2
--- /dev/null
+++ b/roles/usb_lib/files/upload/button.html
@@ -0,0 +1,19 @@
+
+Upload to USB
diff --git a/roles/usb_lib/files/upload/error.php b/roles/usb_lib/files/upload/error.php
new file mode 100644
index 000000000..c5210d229
--- /dev/null
+++ b/roles/usb_lib/files/upload/error.php
@@ -0,0 +1,16 @@
+
+
+ERROR: Please make sure one and ONLY one (no more, no less) removable USB stick is plugged into your Internet-in-a-Box. Please see IIAB FAQs for additional support: FAQ #4 - Can teachers display their own content?, FAQ #49 - What are the best places for community support?.
+
+
+
+