Theme
Vhost editor
Advanced users can edit the site’s Nginx virtual host directly for custom rewrites, headers, and redirects.
Who can use this page? Site manage — Site Actions → Edit Vhost.
When to use it
Prefer panel features when they fit:
| Need | Use instead |
|---|---|
| Apex ↔ www | Edit site / routing |
| Cross-domain redirect | Domain redirects |
| Extra proxy headers | Often default config is enough |
Custom location blocks | Vhost editor |
Use the editor for:
- Custom
locationrules - Extra
proxy_set_headerlines - Rate limits or IP allowlists at the server block level
- One-off rewrite rules
Edit safely
- Site Actions → Edit Vhost
- Copy the existing config as a backup
- Make a small change
- Save — Nginx validates and reloads
- Verify the site in a private window
If validation or reload fails, restore your saved configuration or contact NitHost support with the exact error.
Changes to routing can interrupt the site. Keep a copy of the working configuration before editing.