About Apache HTTP Server
Apache HTTP Server (httpd) is an Apache-2.0 web server built from loadable modules. Virtual hosts, .htaccess overrides, mod_rewrite, mod_ssl, HTTP/2 and mod_proxy cover most hosting jobs without extra software.
Plenty of PHP apps still ship .htaccess rules written for Apache, which keeps it a safe default. A CloudSat VPS gives it a dedicated IP, NVMe storage and root access to every config file.
On Ubuntu the package is apache2: sites live in /etc/apache2/sites-available, and the default site answers on port 80 right after deploy.
What you get with Apache HTTP Server
- Name-based virtual hosts for many sites on one IP
- Per-directory
.htaccessoverrides and mod_rewrite - TLS through mod_ssl and HTTP/2 through mod_http2
- Reverse proxy and load balancing with mod_proxy
- Event MPM for many concurrent connections
Apache HTTP Server use cases
- Host PHP apps that depend on
.htaccessrules - Serve several small sites from one VPS
- Put a TLS front door before an app server
After you deploy Apache HTTP Server
- When the server shows Running, open
http://<server IP>to see the default Apache page. - SSH in as root (the password lives in the Access tab) and add a virtual host file under
/etc/apache2/sites-available. - Enable it with
a2ensite, add modules witha2enmod, then runapachectl configtestandsystemctl reload apache2. - Point your domain at the server and request a certificate with Certbot's Apache plugin.
Apache HTTP Server ports
Open these in your firewall if you use one: 80/tcp HTTP, 443/tcp HTTPS.
Apache HTTP Server FAQ
Apache or nginx for PHP sites?
Apache reads .htaccess files, which many PHP apps use for rewrites and access rules. nginx ignores them, so those rules would need converting first.
How do I add HTTPS?
Point a DNS record at the server, then run Certbot with its Apache plugin. It fetches a Let's Encrypt certificate, edits the virtual host and schedules renewal.
Disclaimer. The Apache HTTP Server project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.