Site Tools


web-nginx

Nginx & PHP

In this page you can enable and configure the internal webserver and its optional support for php pages. Please note FreshTomato has a built in httpd webserver that is used exclusively for the router administration. This additional minimal webserver is based on a more modern nginx.


NGINX - is currently running/in currently stopped: Displays the service status and allows you via the [Stop now]/[Start now] button to operate the background process.
Enable Server on Start : When set lunches the service at boot
Enable PHP support : If you have php pages served by the webserver, setting this option would enable their interpretation.
Run As - root/nobody: Define the system username that should be running the nginx deamon.


Keep config files : <FIXME>
Web Server Port : Defines where within the LAN environment the web content is to be served (as in what port); 80 is the default for HTTP however there might be a conflict if httpd is set up to use the same port (admin-access.asp). Decision was made to default this to 85.
Upload file size limit : Sets an hard-coded limit for the maximum amount of data that can be uploaded in a single session.
Allow Remote Access : Disabled by default specifies if the nginx content should be visible on the WAN side or not. If so the same port as per LAN's “Web Server Port” is to be used.

Web Server Name : Defines the name (Tomato is the default).
Document Root Path : Indicates where the root folder for the content/pages is on the filesystem.
Server Priority : Set the “nice” value for the process. It can span between -20 (highest priority) and 19 (lowest priority).
Enable h5ai support : h5ai is a minimalistic php code that displays “boring” file/folder lists in a visually satisfying way. To benefit from h5ai you need to:

  • Enable this option
  • Enable php on this very page
  • Download h5ai and copy the _h5ai folder right under the Document Root Path


The Custom Configuration fields allow to define custom directive to tweak the default behavior. For additional information please consult the updated offical nginx documentation.


Use user config file : User config file will be used, some of GUI settings are to be ignored
User config file path : Specify here the custom nginx config file (if any)

web-nginx.txt · Last modified: 2022/02/15 16:45 by rs232