nginx-sites-available
Generates nginx-sites-available-default configuration file for serving the Vue application on Debian/Ubuntu-based nginx installations.
When & Why to Use This Skill
This Claude skill automates the generation of optimized Nginx configuration files specifically tailored for Vue.js Single Page Applications (SPAs) on Debian and Ubuntu systems. It streamlines the deployment process by providing a production-ready 'sites-available' template that handles SPA routing, static asset serving, and common server configurations out of the box.
Use Cases
- Case 1: Deploying a Vue.js frontend to a production Ubuntu server where Nginx is used as the primary web server.
- Case 2: Configuring Nginx 'try_files' directives to ensure seamless client-side routing and prevent 404 errors on page refreshes in SPAs.
- Case 3: Generating standardized Nginx configuration files for use within Dockerfiles to serve static assets in containerized environments.
- Case 4: Quickly setting up secure web hosting with pre-configured placeholders for SSL certificates, IPv6 support, and virtual hosts.
| name | nginx-sites-available |
|---|---|
| description | Generates nginx-sites-available-default configuration file for serving the Vue application on Debian/Ubuntu-based nginx installations. |
Nginx Sites Available Default Skill
Purpose
Generate nginx sites-available default configuration file for serving the Vue application.
Output
Create the file: nginx-sites-available-default
Template
See: examples.md in this directory for complete template and detailed examples.
Notes
- Default nginx sites-available configuration for Debian/Ubuntu-based systems
- Serves static files from
/usr/share/nginx/html - Configured for SPA (Single Page Application) routing with
try_filesfallback to index.html - Listens on both IPv4 and IPv6
- Includes commented examples for SSL, PHP, and virtual hosts
- Custom error pages for 500-series errors
- Used in Dockerfile to configure nginx server