I have an idea. Previously I had a crack at using nfsroot which is very tricky to get going.
What I am doing now is compiling a custom version and only putting the basics into the rom to fit in 4MB which isn't much.
To make the most of the memory I will be making a patch to use busybox extra applets for zram swap and zram for /tmp
https://dev.openwrt.org/ticket/19586#comment:5
Also in busybox is the mount tool, and ndb client. You can have an ext2 filesystem shared from a server (loopback image shared by nbdd and mounted on the router added via overlayfs. So you can have the kitchen sick of apps to run when you need them. Storage wont be a problem anymore. Good for tcpdump, nmap and stuff like that you can run over ssh.
As your router will be dependent on some kind of file-server, why can't you just redirect web traffic to a machine behind the DMZ using firewall / iptables?
Why use a 400MHZ mips processor to run your website when you can use a PC or a PI or something with more grunt and ram! Dietlibc on decent MIPS hardware can do alot though. Just ask the folks at synology.com
Without cross posting have you seen I have nearly the same hardware? BTW next time put your post in General discussion. This section of the forum is for sharing HOWTO knowledge.
(Last edited by hojuruku on 23 Jun 2016, 15:02)