Apache VirtualHost Generator

Reverse Proxy SSL/TLS URL Rewriting
Anish Nath
Configuration
Basic Settings
Separate multiple with spaces
Quick Presets
SSL/TLS
Reverse Proxy (mod_proxy)
URL Rewriting (mod_rewrite)
Security Headers
Performance
VirtualHost Configuration

                            
Installation
  1. Save configuration to /etc/apache2/sites-available/example.com.conf
  2. Enable required modules:
  3. Enable the site:
    sudo a2ensite example.com
    sudo systemctl reload apache2
  4. Test configuration: sudo apache2ctl configtest
Apache Best Practices
mod_proxy vs mod_rewrite

mod_proxy is ideal for reverse proxying to application servers. mod_rewrite is for URL manipulation and complex routing logic.

SSL Best Practices
  • Use Let's Encrypt for free SSL certificates
  • Enable HTTP/2 with Protocols h2 http/1.1
  • Set SSLProtocol all -SSLv3 -TLSv1 -TLSv1.1 for security
  • Use strong cipher suites
Performance Tips

Enable mod_http2 for HTTP/2 support, use mod_cache for caching, and configure KeepAlive On for connection reuse.

Support This Free Tool

Every coffee helps keep the servers running. Every book sale funds the next tool I'm dreaming up. You're not just supporting a site — you're helping me build what developers actually need.

500K+ users
200+ tools
100% private
Privacy Guarantee: Private keys you enter or generate are never stored on our servers. All tools are served over HTTPS.