> Apache HTTP Server

Configure Apache httpd: virtual hosts, SSL, mod_rewrite, reverse proxy, and .htaccess.

fetch
$curl "https://skillshub.wtf/skillshub-team/catalog-batch5/apache-httpd?format=md"
SKILL.mdApache HTTP Server

Apache httpd

Virtual Hosts

<VirtualHost *:80>
    ServerName myapp.com
    DocumentRoot /var/www/myapp/public
    <Directory /var/www/myapp/public>
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

SSL: sudo certbot --apache -d myapp.com

Reverse Proxy

ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/

.htaccess (SPA fallback)

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [L]

Modules: sudo a2enmod rewrite ssl proxy headers expires deflate

Security: ServerTokens Prod, X-Frame-Options, CSP headers

┌ stats

installs/wk0
░░░░░░░░░░
first seenMar 18, 2026
└────────────

┌ tags

└────────────