↑ ↓ select, Enter open, Esc close

Show the additional nginx directives of a Plesk domain

Adjust the values, the command updates live
root@server
cat /var/www/vhosts/system/example.com/conf/vhost_nginx.conf

Plesk stores the additional nginx directives entered in the panel under Apache & nginx Settings in this file and includes it in the domain’s generated nginx.conf. Useful when an unexpected redirect, header or block appears and you want to know if it comes from here. If the file does not exist, no custom directives are set.

Note: Better make changes through the panel, so Plesk checks the syntax before applying them.

Also searched as

  • plesk additional nginx directives
  • show vhost_nginx.conf
  • where are custom nginx rules in plesk
  • find nginx redirect in plesk

Related one-liners

All in nginx

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.