hieudoanm/hieudoanm.github.io/apache-server
Claude Code and agent skill by hieudoanm/hieudoanm.github.io
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Best practices for Apache HTTP Server configuration. Use when writing, reviewing, or optimizing httpd.conf and site configurations.
Install
npx vskill@latest install hieudoanm/hieudoanm.github.io/apache-serverSKILL.md
The same SKILL.md was published earlier as hieudoanm/hieudoanm.github.io/apache-server.
Apache Server Best Practices
Apache is a widely used web server. Proper configuration ensures performance, security, and maintainability.
1. Module Loading
- Load only necessary modules —
LoadModuleonly what you use; avoidmod_status,mod_infoon production servers. - Use `mod_identify` sparingly — only for intranet access logging.
- Enable `mod_proxy` and `mod_proxy_fcgi` for reverse proxy / PHP-FPM setups.
2. VirtualHost Structure
- Listen on port 80 (HTTP) and 443 (HTTPS) — standard ports; avoid custom ports unless required.
- Use `ServerName` in each
VirtualHostto suppress startup warnings. - Separate HTTP → HTTPS redirect in a dedicated
<VirtualHost *:80>block.
3. Performance tuning
- `KeepAlive On` with
KeepAliveTimeout 5— enable persistent connections; tune timeout for your workload. - `MaxRequestWorkers` — set based on available memory; default 150 may be too high for low-RAM servers.
- `EnableSendfile on` — improve static file delivery on Linux (disable on some virtualized environments).
4. Security hardening
- `ServerTokens Prod` — expose only
Apachein server header, not version or modules. - `ServerSignature Off` — suppress trailing footer on error pages.
- `Directory` restrictions — use
Require all deniedfor.htaccess,.git, and other sensitive directories. - `mod_security` — deploy rule set for WAF protection.
5. Quick-Start Checklist
- [ ] Only necessary modules loaded
- [ ]
ServerNameset in eachVirtualHost - [ ] HTTP → HTTPS redirect in separate
:80block - [ ] SSL/TLS configured in
:443block - [ ]
MaxRequestWorkerstuned for available memory - [ ]
ServerTokens ProdandServerSignature Off - [ ] Sensitive directories denied access
- [ ]
EnableSendfile onfor performance
Security
- Security scanPassed, 98 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 repositoryChecking.skills/programming/devops/server/apache-server/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
- 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/hieudoanm/hieudoanm.github.io/apache-server)