cwp-webserverlisted
Install: claude install-skill fattain-naime/cwp-superpowers
# CWP Web Server Management
Manage Apache, Nginx, Varnish, and LiteSpeed web server configurations within CWP. Handle vhost templates, module management, reverse proxy setups, and common web server issues.
## Overview
Choose from multiple web server stacks. The selected stack determines how requests are processed and which configuration files to edit.
| Stack | Description | Use Case |
|---|---|---|
| Apache + PHP-FPM | Standard configuration | General hosting |
| Nginx + PHP-FPM | High-performance | Static-heavy sites |
| Nginx -> Varnish -> Apache | Maximum performance | High-traffic sites |
| Apache + suPHP | Legacy compatibility | Legacy PHP apps |
| LiteSpeed Enterprise | Commercial option | Enterprise hosting |
## Service Detection
Detect which web servers are installed:
```bash
# Apache
systemctl is-active httpd 2>/dev/null && echo "Apache: active" || echo "Apache: not running"
# Nginx
systemctl is-active nginx 2>/dev/null && echo "Nginx: active" || echo "Nginx: not running"
# Varnish
systemctl is-active varnish 2>/dev/null && echo "Varnish: active" || echo "Varnish: not running"
# LiteSpeed (optional)
systemctl is-active lsws 2>/dev/null && echo "LiteSpeed: active" || echo "LiteSpeed: not installed"
```
## Port Mapping
| Port | Service |
|---|---|
| 80 | HTTP (Apache or Nginx) |
| 443 | HTTPS (Apache or Nginx) |
| 82 | Varnish cache |
| 8181 | Apache behind Nginx proxy |
| 8080 | Tomcat (if enabled) |
## Vhost Templates
**Location:** `/usr/local/cwpsrv/h