g1joshi/agent-skills/apache
Claude Code and agent skill by g1joshi/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Expert Apache HTTP Server assistance covering virtual hosts, mod_rewrite, reverse proxying, SSL/TLS, and .htaccess. Use when configuring Apache web servers, URL redirection, or legacy web hosts.
Install
npx vskill@latest install g1joshi/agent-skills/apacheSKILL.md
The same SKILL.md was published earlier as g1joshi/agent-skills/apache.
Apache HTTP Server (httpd)
Apache HTTP Server is a battle-tested, modular web server offering extensive configuration flexibility via .htaccess, dynamic module loading, and reliable reverse-proxy capabilities.
When to Use
- Enterprise HTTP Reverse Proxy & Web Serving: Serving dynamic applications and static assets with Apache HTTP Server (httpd).
- PHP & Mod_Security WAF Deployments: Deploying PHP applications (WordPress, Drupal) and Web Application Firewalls (OWASP CRS).
- Fine-Grained Access Control & .htaccess: Delegating directory-level access rules and rewrites to non-root developers.
- Complex URL Rewriting & Reverse Proxying: Utilizing
mod_rewriteandmod_proxyfor intricate request routing.
Quick Start
Core Concepts
VirtualHost Configuration with TLS and HTTP/2
Production VirtualHost configuration with modern TLS parameters:
Reverse Proxy with mod_proxy & Load Balancing
Forwarding traffic to backend microservices with health checks:
URL Rewriting with mod_rewrite
Handling Single Page Application routing:
Common Patterns
Reverse Proxy with SSL Termination and WebSocket Upgrade
Problem: Forwarding external HTTPS traffic to an internal Node/Go service while supporting WebSockets.
Solution: Enable proxy and proxy_wstunnel modules:
Best Practices
Do:
- Disable
AllowOverride Allin production to prevent performance hits from filesystem.htaccesslookups. - Enable
Protocols h2 http/1.1to take advantage of HTTP/2 multiplexing. - Hide server signatures by setting
ServerTokens ProdandServerSignature Off. - Test configuration syntax with
apachectl configtestbefore reloading the service.
Don't:
- Use the prefork MPM for high-concurrency modern workloads; use the
eventMPM (mpm_event). - Leave directory listings enabled (
Options +Indexes); always useOptions -Indexes. - Run Apache as root; ensure worker processes run under dedicated unprivileged users (
www-data).
Troubleshooting
| Error | Cause | Solution | |
|---|---|---|---|
AH00072: make_sock: could not bind to address [::]:80 | Port 80 occupied by Nginx, another Apache, or Docker container. | Kill conflicting process: sudo fuser -k 80/tcp. | |
403 Forbidden: You don't have permission to access this resource | Directory permissions too restrictive or missing Require all granted. | Check filesystem ownership (chown -R www-data:www-data) and <Directory> block. | |
Invalid command 'RewriteEngine' | mod_rewrite module not enabled. | Run sudo a2enmod rewrite && sudo systemctl restart apache2. |
References
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/devops/apache/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/g1joshi/agent-skills/apache)