Start a project

Tool 413 of 425 · Apache

Apache VirtualHost Generator

Writes an Apache VirtualHost for static, PHP-FPM or reverse-proxy sites with HTTPS.

Apache VirtualHost Generator

Your input

Result

VirtualHost

    01

    What it does

    Writes an Apache VirtualHost for static, PHP-FPM or reverse-proxy sites with HTTPS.

    • Static, PHP-FPM or reverse proxy
    • Let's Encrypt certificate paths
    • HTTP to HTTPS redirect and HSTS
    • a2enmod / a2ensite commands

    02

    Private by design

    Everything happens in your browser. Nothing you type, paste or upload is sent anywhere, and it keeps working offline once the page has loaded.

    03

    What you get

    Config file and setup commands, with a Copy and a Download button on every result.

    • Apache
    • VirtualHost
    • HTTPS

    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

    1. Type or paste your input; the example shows the format.
    2. Press Generate config. Results also update as you type.
    3. Read the summary line, then the table, notes or output below it.
    4. 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.

    Work with me

    Want a site that gets these right?

    I build fast, accessible websites and web apps that pass these checks from day one. Tell me about your project and I'll reply personally with honest next steps.

    All developer tools · Back to leej.uk