Repository navigation
Releases
Releases · JuanTorchia/gmm-apache-vscode
Apache Config v0.1.0
Added
apachelanguage forhttpd.conf,apache2.conf,.htaccess,*.htaccess,*.apacheconf,*.vhostand.conffiles underapache2/,apache/,httpd/andconf.modules.d/, plus content detection forsites-available/,sites-enabled/,conf.d/,conf-available/andvhosts.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.htaccessor by the AllowOverride classes inapache.htaccess.allowOverride, wrong argument counts andOn/Offvalues, 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,
intermediateormodern):SSLProtocolevaluated 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 publicserver-status. # gmm-lint-disable-next-line [ids]comments to silence any diagnostic on the next line.- Certificate insights for
SSLCertificateFile,SSLCertificateKeyFile,SSLCertificateChainFileandSSLCACertificateFile: hover with subject, SANs, issuer, validity, key and chain; expiry, key match (also for keys inside the certificate file),ServerName/ServerAliasoutside 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/IncludeOptionalnavigation 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.