Raspberry For Serving Your Own Files   Goal Recapture the Value

How it works.

Diagram on Google Docs


No DNS service necessary for short term pages like auctions.
If you regester a name and point it to a cheap service you can upload a page that redirects to your service.
php . The php will process the add on  tag.


https://pimylifeup.com/raspberry-pi-ftp/


Server on mac first.

http://24.17.167.113/
/etc/apache2.

http://192.168.1.93/:80   raspberry server
take apache off local? not necessary

library webserver documents is root

set permissoion to read only.
ftp to raspberry server
what is ip
what is port
    

Use cyberduck to upload files.
Build bash script for mac for uploading
see /Users/DriveDocs/whupftp.sh

#!/bin/bash
#whupftp.sh
cd ~/wh_uploads
HOST='files.000webhost.com'
USER='circadea'
PASSWD='theend11'
FILE='*.*'

ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $PASSWD
binary
cd /public_html/circadea/
prompt off
mput *.*
quit
END_SCRIPT

mv *.*  ~/wh_website
exit 0


ftupdd.sh
fsmd3pdf.sh
ftupdd.sh
fsmd3pdf.sh
ftindd.sh
ftindd.sh
lighttpd.sh

use folder watcher to trigger event?

use pdf upload fsm

list of bash scripts  done bash_script_list.txt

Godaddy > webhosting.cheap  php script redirect in index.html

curl ifconfig.me > file.txt    = 24.17.167.113
curl icanhazip.com > file.txt = same seems to be fastest curl ipecho.net/plain > file.txt = same curl ifconfig.co > file.txt


$lines_array = file("file.txt");


A service....

have server upload the ip address for the location.

<a href='http://website2.com/index.php?id=2489&user=tom'>link to page2</a>
https://www.plus2net.com/php_tutorial/variables2.php

<a href=https://www.sitename.com/index.php?id=2489&user=tom>Link to another site</a>
one only needs to input the ip address into the string
website=



<?php $fpvalue = $_GET['p']; $frvalue = $_GET['r']; $fsvalue = $_GET['s']; header("Location: http://website2.com/".$fpvalue.".aspx?r=".$frvalue."&s=".$fsvalue); exit; ?> <html> </html>