Questions tagged [uhttpd]

4 questions
1
vote
1 answer

PHP shell_exec uci not working but without errors

Hey all I am new at doing anything regaurding PHP Shell_exec commands. I have some UCI code that allows me to add a rule to my fireall. This works just fine in SSH but when I try running the same thing in the PHP page it does not seem to do anything…
StealthRT
  • 10,108
  • 40
  • 183
  • 342
0
votes
0 answers

Trouble reading index.html for a login webpage using HTTPS

I was performing a switch from HTTP to HTTPS for an IOT gateway's server login page using a self-signed HTTPS certificate. But after the whole process of the HTTPS configuration has been completed, the URL which perfectly opened the login page using…
0
votes
1 answer

How to set Cache-Control header in openwrt uhttpd

I checked the docs but couldn't find anything about Cache-Control. I wish to set the following header: Cache-Control: no-cache, max-age=0 If you know a workaround please let me know. Many thanks!
remus
  • 2,635
  • 2
  • 21
  • 46
0
votes
1 answer

uhttpd rewrite all routes to /

I am trying to set up a react app using react router behind a uhttpd server on an embedded device. Unfortunately I do not know how to forward all subroutes (eg. /foo/bar) back to / In nginx this is possible using the try_files statement. Is there…
Jonathan R
  • 3,652
  • 3
  • 22
  • 40