Web Servers

Apache Web Server Hosting on a VPS

Apache HTTP Server is a web server that serves static files and runs web applications through loadable modules, with name-based virtual hosts and per-directory .htaccess overrides. Developers and agencies run it for PHP sites and apps that ship .htaccess rules, and as a reverse proxy in front of other services.

The one-click install puts Ubuntu 24.04's apache2 package on the server, enables and starts the apache2 systemd service, and replaces the default page at /var/www/html/index.html with a one-line "Apache is running" page. Apache listens on port 80. That is all it does: no PHP, no HTTPS and no extra modules are set up, so you start from a clean web server.

Ubuntu 24.04 ships Apache 2.4.58 and delivers fixes as package updates (apt upgrade), so the version number stays at 2.4.58. Apache's own latest 2.4 release is 2.4.69, from October 2026; the Apache documentation covers both.

What it needs

Apache's documentation sets no hardware figures; what it uses depends on what it serves. Static files and a reverse proxy need very little. PHP applications need more, because every PHP worker holds its own memory. The catalogue's minimum is 1 vCPU and 256 MB; the recommended 1 GB fits the Veloxa Nano size: 1 vCPU, 1 GB RAM and 25 GB of disk for $4 a month, billed at $0.01 an hour and capped at the monthly price. If a site outgrows it, raise memory from the console: on a container the change applies without a restart.

Your site and virtual hosts

Ubuntu's layout splits Apache's configuration under /etc/apache2: apache2.conf for global settings, ports.conf for the ports Apache listens on, and sites-available and sites-enabled for virtual hosts, where enabled sites are links to the available ones. The default site, 000-default.conf, serves /var/www/html. Put a single site's files there, or add a virtual host per domain:

nano /etc/apache2/sites-available/example.conf
a2ensite example
a2dissite 000-default
apachectl configtest
systemctl reload apache2

apachectl configtest checks the syntax before the reload, so a typo does not take the site down. Enable modules the same way with a2enmod, for example a2enmod rewrite for .htaccess rewrite rules or a2enmod proxy_http to proxy an app.

Reaching it on VeloxaHost

Every server gets a block of ports (10 by default) on the region's shared IPv4 address. The first forwards to SSH; under How to connect on the server's page, forward another to port 80 and open http://<shared address>:<port>.

For a domain on ports 80 and 443, use a dedicated IPv4 address (a paid add-on with limited availability). Certbot's Apache plugin then gets and installs a Let's Encrypt certificate; it validates over port 80, so it needs that dedicated address:

apt install -y certbot python3-certbot-apache
certbot --apache -d example.com

IPv6 is not available in US East yet.

Backups and updates

Your sites live in /var/www and their configuration in /etc/apache2; with Certbot, certificates are in /etc/letsencrypt. Turn on automatic snapshots on the server page (hourly up to weekly, kept for 1 to 30 days) or scheduled backups (every 6 hours up to weekly, keeping 1 to 10); both capture these folders with the rest of the disk.

To update Apache, take a snapshot, then run apt update && apt upgrade from the browser terminal.

FAQ

Can Apache run PHP sites like WordPress?

Yes, once you install PHP from Ubuntu's packages. For WordPress itself there is a separate one-click app, WordPress, which sets up the database and PHP for you.

Apache or Nginx?

Both serve static sites and proxy apps well. Apache reads .htaccess files in each directory, which many PHP applications rely on; Nginx has no per-directory overrides and keeps all rules in its own configuration. Pick the one your application documents.

Can I use my own domain?

Yes. Point a DNS record at a dedicated IPv4 address and add a virtual host for the domain. On the shared address, the site answers at the shared IP and your forwarded port.

What license is Apache HTTP Server under?

Apache HTTP Server is released under the Apache License 2.0, like all Apache Software Foundation projects.

Which VeloxaHost size fits Apache?

The recommended 1 vCPU and 1 GB of RAM is a Veloxa Nano: 1 vCPU, 1 GB RAM and 25 GB of disk for $4 a month, billed at $0.01 an hour and capped at that price.