DevTools Logo

Apache Config Generator

Apache Config Generator

Build an Apache 2.4 VirtualHost — ServerName, DocumentRoot, Directory, aliases, and optional SSL.

VirtualHost

Examples

HTTP site

Input
ServerName example.com, DocumentRoot /var/www/example, Directory with AllowOverride All
Output
<VirtualHost *:80>
    ServerName example.com
    DocumentRoot /var/www/example
    <Directory /var/www/example>
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

A basic HTTP vhost that allows .htaccess overrides.

About this tool

The Apache Config Generator writes an Apache 2.4 VirtualHost block. Set the ServerName and optional alias, the DocumentRoot, and the port; add a Directory block, aliases, and SSL when needed. The output uses modern Require all granted access control — nothing is uploaded.

How to use

  1. Set the host

    Enter the ServerName and an alias, plus the DocumentRoot.

  2. Add Directory or SSL

    Include a Directory block for options, and toggle SSL for port 443 with cert paths.

  3. Enable the site

    Save under sites-available and run a2ensite, then reload Apache.

Use cases

New virtual host

Stand up a config for a new domain.

HTTPS migration

Add an SSL vhost on 443 alongside the HTTP one.

Common mistakes

Mistake:Using 2.2 Allow/Deny syntax.

Fix:Apache 2.4 uses Require all granted — the builder emits the modern form.

Frequently asked questions

References & standards

.htaccess Generator

Build an Apache .htaccess — HTTPS redirects, rewrites, error pages, security headers, and basic auth

2D Fluid Dynamics & Particle Physics Sandbox

A physics playground with two engines sharing one canvas. The fluid mode runs a real Eulerian Navier-Stokes solver — semi-Lagrangian advection, explicit diffusion, Jacobi pressure projection and vorticity confinement — that you paint with dye and velocity using mouse or touch. The particle mode is a damped Verlet N-body engine with gravity wells, Coulomb attractors and repulsors, spring links, wall restitution and elastic circle collisions. Particle counts adapt to the device (100k target on WebGL2 desktop, 2k-5k on CPU fallback), and every configuration exports as runnable code: a Matter.js world, a PixiJS ticker setup, or a standalone vanilla Canvas engine.

Algorithm Arena & Data Structure Visualizer

Interactive arena for algorithms and data structures: eight sorting algorithms racing on one seeded input, six pathfinding algorithms walking generated mazes, and BST, AVL, Red-Black, B-tree, heap and trie operations replayed step by step with rotations highlighted. Every run shows the Big-O table and the phase-highlighted reference implementation in four languages, and compared values can be played as pitch (sonification) through the shared audio engine. Everything runs client-side; inputs never leave the browser.

Ansible Playbook Generator

Build an Ansible playbook — hosts, vars, and tasks with modules — as YAML

AWS Architecture Diagram

Drag-and-drop AWS service blocks, connect edges and export architecture diagrams as SVG

AWS Pricing Calculator

Estimate monthly AWS costs from static list prices with a Chart.js breakdown