Skip to content

Releases

Apache Config v0.1.0

Choose a tag to compare

@github-actions github-actions released this 04 Dec 20:42
06aa909

Added

  • apache language for httpd.conf, apache2.conf, .htaccess, *.htaccess, *.apacheconf, *.vhost and .conf files under apache2/, apache/, httpd/ and conf.modules.d/, plus content detection for sites-available/, sites-enabled/, conf.d/, conf-available/ and vhosts.d/ files, which nginx shares.
  • TextMate grammar: directives, sections, server variables, defines, back-references, strings, parameters, rewrite flags, numbers, comments and continuation lines.
  • Directive catalog of httpd 2.4 and its official modules (731 directives) generated from httpd.apache.org by npm run catalog:generate, with argument counts from the command tables of httpd 2.4.71.
  • Language server with diagnostics for directives outside their context (server config, virtual host, directory, .htaccess, <Proxy>), directives not allowed in .htaccess or by the AllowOverride classes in apache.htaccess.allowOverride, wrong argument counts and On/Off values, section syntax, unclosed or mismatched sections, unknown directives (warnings; common third-party modules are recognised), and certificate files that cannot be found (information).
  • mod_rewrite help: flag completion and hover, unknown flags, bad argument lines, invalid R= codes, patterns that do not compile, ^/ patterns in per-directory context and conditions that no rule follows.
  • TLS lint against the Mozilla Server Side TLS guidelines (6.0, intermediate or modern): SSLProtocol evaluated like mod_ssl, weak and out-of-profile ciphers, HSTS, SSLHonorCipherOrder, DH parameters, static ticket keys, compression and insecure renegotiation, with quick fixes. Rule IDs are shared with NGINX Config and HAProxy Config.
  • Security lint: directory listings, ServerTokens Full, ServerSignature, TraceEnable, <Directory /> open to everyone, open forward proxies and public server-status.
  • # gmm-lint-disable-next-line [ids] comments to silence any diagnostic on the next line.
  • Certificate insights for SSLCertificateFile, SSLCertificateKeyFile, SSLCertificateChainFile and SSLCACertificateFile: hover with subject, SANs, issuer, validity, key and chain; expiry, key match (also for keys inside the certificate file), ServerName/ServerAlias outside the SANs and chain order checks.
  • Open in CertView CodeLens with the days until expiry when CertView is installed.
  • Context-aware completion, hover documentation, outline of virtual hosts and sections, folding, and Include/IncludeOptional navigation with ServerRoot, wildcard and directory resolution.
  • Formatter that only re-indents and never adds or removes lines.
  • Snippets for HTTP and HTTPS virtual hosts, HTTPS redirects, reverse proxies, directories and front-controller rewrites.