nginx Support

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand DataGrip Rider MPS Android Studio
Sep 20, 2017
125 554
nginx server support for IntelliJ IDEA
Runs/reloads configuration/stops nginx server from IDEA.
Configuration file syntax highlighting, auto-completion and inspections. By default .nginx files are registered as nginx files. To use other extensions you will need to associate those files with the correct file type. If you have the Lua extension installed Lua syntax highlighting will be enabled for *_by_lua_block directives used by the lua-nginx-module.

Download plugin

Recent change notes

  • Fix bundle not found exception (issue 63).
  • 0.1.5
    • Fix compatible builds to 142.3304+
    • Fix set_by_lua_block syntax error (issue 55).
    • Fix race condition with lexer (thanks abregar!) (issues 58, 56).
    • Update NGINX and OpenResty keywords.
    • Update NGINX and OpenResty keywords.
    • Add default extension .nginx. This enables use with scratch files.
    • Partial fix for Lua block parsing when Lua contains braces. This works as long as the Lua braces are balanced. Otherwise the Lua block get expanded to the next closing brace. In this case the Lua shouldn't be valid anyway.
    • Fix PID path with spaces failing.
    • Added Lua language injection to *by_lua_block directives. The Lua plugin must be installed for this to work!
    • Fixed some deprecated methods
    • Added OpenResty keywords from
    • Added support for local variables using set directives
    • Added double quotes to denote strings as well as single quotes
    • Updated keywords to Nginx 1.9.15
    • Fixed wrong number of argument annotations (e.g. server_name with multiple values)
    • Idea 15 compatibility - PlatformDependentToolsInstaller could be app service now and appropriate implementation selected by "os" attribute
    • FileTypeFactory for type registration
    • Deprecated FileChooser fixed
    • Built for IDEA 12 and later
    • Documentation and autocompletion update for nginx 1.4
    • Built for IDEA 11 and later
    • -V output pattern parser fixed again, should work for all versions
    • Documentation and autocompletion update for nginx 1.1.1
    • Built for IDEA 10.5.x and later
    • -V output pattern fixed for versions 0.8.23+ and 0.7.64+
    • Works for all Jetbrains platform products (since build 93.94)
    • Documentation and autocompletion update for nginx 0.8.35
    • Now only "Run" button is enabled for nginx run configuration.
    • Works for WebIDE.
    • Documentation and autocompletion update.
    • Documentation and autocompletion update.
    • Open included files with ctrl+b (Go to Declaration).
    • Autoformat support.
    • Quick documentation lookup support for directives and variables. Only for those that can be found at
    • $arg_<PARAM>, $http_<PARAM> and $cookie_<PARAM> are not highlighted as unknown anymore.
    • Warning when choosing nginx executable. Running "nginx -V" can be cancelled and default parameter values will be used.
    • Basic $variable support. Autocompletion and name checks are available. No checks for parent context and no support for variables in strings yet.
    • Log files can be shown in tabs next to console
    • Autocompletion is context-aware
    • Directive list is taken from sources, not from docs
    • More advanced inspections like checking if a directive can reside in a context
    • Should work on Mac
    • First release. Won't work for Mac.
    • Basic autocompletion and inspections.