Ilia Ross 3e4bb23b21 Add return code redirects to Nginx URL rewriting pages
This PR adds a "Redirect all requests" option to the server block and location URL Re-Writing pages in the Nginx Webserver module, backed by the Nginx return directive with a choice of 301, 302, 303, 307 or 308.

The existing rewrite table only offers the redirect and permanent flags, which map to 302 and 301. The other codes requested on the forum are not supported by rewrite at all, so they can only be provided through return.

The new option only manages return directives that are redirects. A bare URL form such as return https://example.com/; is shown as a 302, while non-redirect uses like return 404; are hidden from the page and never modified or removed.

Example of the resulting config for a server block:

return 308 "https://example.com$request_uri";

Fixes https://forum.virtualmin.com/t/137940
2026-09-07 04:01:34 +02:00
2026-06-10 20:11:24 +02:00
2026-09-05 03:52:39 +02:00
2026-02-02 18:07:42 -06:00
2026-09-05 03:52:39 +02:00
2026-09-05 03:52:39 +02:00
2026-09-05 03:52:39 +02:00
2026-08-09 03:32:05 +02:00
2025-08-19 11:44:39 +03:00
2026-04-17 14:43:06 +02:00
2026-07-14 02:58:54 +02:00
2026-04-10 15:27:28 +02:00
2026-04-10 15:32:26 +02:00
2026-04-10 15:27:28 +02:00
2025-10-16 11:51:04 +03:00
2025-04-30 14:43:16 +03:00
2026-04-10 15:27:28 +02:00
2025-02-21 14:58:37 +02:00
2026-09-05 03:52:39 +02:00
2026-08-19 20:14:03 -07:00
2023-10-11 18:51:22 +03:00
2026-09-05 03:52:39 +02:00

 

Webmin

 

Documentation   |   FAQ   |   Security   |   Screenshots   |   Forum

Downloads Latest release Stars Members Contributors Issues License

 

 

About

Webmin is a web-based system administration tool for Unix-like servers, and services with about 1,000,000 yearly installations worldwide. Using it, it is possible to configure operating system internals, such as users, disk quotas, services or configuration files, as well as modify, and control open-source apps, such as BIND DNS Server, Apache HTTP Server, PHP, MySQL, and many more.

Dashboard screenshot Dashboard screenshot

Usability can be expanded by installing modules, which can be custom made. Aside from this, there are two other major projects that extend its functionality:

  • Virtualmin is a powerful, flexible, most popular, and most comprehensive web-hosting control panel for Linux, and BSD systems, with over 150,000 installations worldwide. It is available in an open-source community-supported version, and a more feature-filled version with premium support;
  • Usermin presents and controls a subset of user-centred features, rather than administrator-level tasks.

Webmin includes 116 standard modules, and there are at least as many third-party modules.

Requirements

Perl 5.10 or higher.

Installation

For detailed installation instructions check our guide on webmin.com/download page.

Development

Lead developer

Developers

Contributors

License

Webmin is released under the BSD License.

Description
No description provided
Readme 177 MiB
Languages
HTML 52.6%
Perl 44.7%
JavaScript 0.4%
CSS 0.4%
Prolog 0.4%
Other 1.1%