Config
Apache Vhost Generator
Generate an Apache virtual host config.
<VirtualHost *:443>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
<Directory /var/www/example.com>
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/example.com-error.log
CustomLog ${APACHE_LOG_DIR}/example.com-access.log combined
</VirtualHost>Generated in your browser. Free, nothing is uploaded.
About this tool
Free apache vhost generator tool. Generate an Apache virtual host config. No signup, nothing uploaded.
Frequently asked questions
Is the output safe to use?
It is a conservative starting point — always review it before applying.
Do you need access to my server?
No. Paste the config yourself after reviewing.
Can I customise it?
Set domains, ports and paths in the fields, then edit the output.
Need more than a tool?
HostingSwift runs the servers too — VPS, web hosting, email, DNS and streaming, with a free tier to start.