Apache vhost generator
Build a starter Apache VirtualHost snippet in your browser. Nothing is uploaded.
Snippet only. Review paths on the host before you reload.
How to use the Apache vhost generator
- Fill ServerName, DocumentRoot, and listen (usually 80).
- Optional HTTP→HTTPS Redirect stub.
- Copy into a sites-available file and a2ensite on Debian-style hosts.
Apache 2.4 Require
The directory block uses Require all granted (2.4). AllowOverride is None so .htaccess is off until you change it. The redirect stub needs the redirect module. This is not a dump of a live httpd.conf.
Nothing is uploaded
The snippet is local. apachectl configtest still runs on the host.
Apache vhost generator FAQ
Where is .htaccess?
This page writes a vhost. Rewrite rules belong in the vhost or in .htaccess if you enable overrides.
SSL vhost?
Tick the redirect stub, then add your own *:443 VirtualHost with certificate paths.