nginx-sites-available

Generate a default nginx sites-available configuration for serving a Vue SPA.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill nginx-sites-available-kaiserwholearns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nginx-sites-available
Source: https://github.com/KaiserWhoLearns/skillsbench/tree/main/registry/terminal_bench_2.0/terminal_bench_2_0_nginx-request-logging/environment/skills/nginx-sites-available
Command: npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill nginx-sites-available-kaiserwholearns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically generates a Debian/Ubuntu nginx sites-available-default configuration to serve a Vue application, reducing manual config errors.

Core Features & Use Cases

  • Auto-generates a standard sites-available/default configuration for SPA routing with index.html fallback.
  • Provides a template that configures root, listen, server_name, and try_files to support Vue Router.
  • Deployment-ready for Docker or bare-metal nginx setups.

Quick Start

Run this skill to generate nginx-sites-available-default and place it into your nginx sites-available directory.

Frequently Asked Questions about nginx-sites-available

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure nginx for a Vue SPA with index.html fallback?

To configure nginx for a Vue SPA, you need a sites-available configuration that sets the root path and uses try_files to route requests to index.html. This generates a deployment-ready template handling SPA routing automatically.

What does try_files do for Vue Router in an nginx configuration?

The try_files directive in an nginx configuration attempts to serve static files first, falling back to index.html for unmatched routes. This ensures Vue Router can handle client-side routing without receiving 404 errors.

Can I use this nginx sites-available configuration in a Docker container?

Yes, this nginx sites-available configuration is deployment-ready for Dockerized environments. It assumes static assets are served from the /usr/share/nginx/html directory, which is standard for Docker nginx setups.

Does the generated nginx template support Debian and Ubuntu deployments?

Yes, the generated nginx template supports Debian and Ubuntu deployments. It auto-creates a standard sites-available default configuration that fits directly into the Debian/Ubuntu nginx directory structure.

How do I extend the nginx sites-available template for SSL?

You can extend the nginx sites-available template for SSL by modifying the generated configuration. The skill provides a base template setting listen directives and server_name, which can be customized to add SSL and health checks.