Skip to content

NGINX Config Manager

The NGINX Config Manager in FlyWP provides a clean and safe interface to manage your NGINX server configurations without directly accessing the underlying file system. It allows you to control ports, domains, logs, document roots, and modular custom configuration files — all from within the FlyWP dashboard.

  1. From the FlyWP dashboard, navigate to your desired site.

Screenshot 2025 05 06 at 13.00.54

  1. On the left sidebar, click on the “NGINX Config” option.

Screenshot 2025 05 06 at 13.01.55

Purpose: Specifies the ports on which NGINX will listen for incoming connections.

listen 8080; listen [::]:8080;
  • Recommendation: Change this only if you’re running multiple services or testing on non-standard ports.

Purpose: Defines the domains or subdomains this server block will respond to.

server_name nginx.flywp.com backup-test.flywp.me backup-testing-do.flywp.me;
  • Recommendation: Ensure all active domains used for this instance are listed here to prevent routing issues.

Purpose: Prevents NGINX from performing automatic redirects that include port numbers.

absolute_redirect off;
  • Recommendation: Useful when working with non-standard ports or during local/staging development.

Purpose: Specifies where NGINX logs errors and access requests.

error_log /var/log/nginx/error.log;access_log /var/log/nginx/access.log;
  • Recommendation: Monitor these logs for troubleshooting, performance metrics, and attack detection.

Purpose: Sets the root directory from which NGINX serves files.

root /var/www/html/public;index index.php index.html;
  • Recommendation: Ensure your index files (e.g., index.php, index.html) are correctly listed to avoid “403 Forbidden” errors.

Purpose: Modularly extend or override default settings before, during, or after the server block.

include custom/before/*.conf;include custom/server/*.conf;include custom/after/*.conf;
  • Recommendation: Organize custom logic like security headers, redirects, or rate limiting in these folders for cleaner config and easier debugging.

After making your desired adjustments:

  • Click the “Save Changes” button located at the top-right of the NGINX Config Manager panel. Your updated NGINX configuration will be applied immediately.

Save changes (1)

  • If something breaks, you can use the “Restore Default” button to revert to FlyWP’s baseline configuration safely.

Restore default (1)

  • Do not remove any FlyWP config markers (lines marked # FLYWP CONFIG (DON’T REMOVE)) — they ensure your configuration is parsed correctly by the platform.
  • Use the custom/ directories to keep custom changes isolated and maintainable.
  • Always validate your syntax if manually editing .conf files included via the manager.
  • After changes, verify your site loads correctly and logs are free of errors.
  • Site not loading? Check /var/log/nginx/error.log for any syntax errors.
  • Changes not applied? Confirm file names inside custom folders end with .conf.
  • Need further Help? Reach out to FlyWP Support via Live Chat or Ticket.

Still stuck? How can we help?