Why it matters
A VirtualHost is short but easy to get subtly wrong: a missing ServerAlias, the wrong certificate path or a proxy without the right headers.
This writes a clean starting point with the modules it needs listed alongside.
How to use it
- Type or paste your input; the example shows the format.
- Press Generate config. Results also update as you type.
- Read the summary line, then the table, notes or output below it.
- Copy or download what you need. Nothing leaves this page.
FAQ
Where does the file go?
On Debian and Ubuntu, /etc/apache2/sites-available/DOMAIN.conf, then a2ensite DOMAIN.
Should I test before reloading?
Yes: apachectl configtest, then systemctl reload apache2.
Is my input uploaded?
No. The tool runs in your browser and nothing you type, paste or open is sent anywhere.
Can I rely on the result?
It follows the public specification or formula named on this page and says where it simplifies. Check anything critical against the official tool or documentation before you ship it.