Static HTML Environment#

Static sites are served by the Apache HTTP Server.

Apache Configuration#

Static sites run a baseline Apache server with the following modules enabled:

  • rewrite

  • expires

By default, directory indexing is disabled. Files named index.html will be served when a directory URL is requested.

The static site hosting environment does not provide any kind of server-side programming languages such as Perl, Python, PHP, cgi-bin, etc.

.htaccess Files#

You can customize your Apache configuration by creating a file named .htaccess in any directory of your static site. This is most commonly used for specifying URL rewrites or redirects, custom 404 pages, etc.

See the Apache tutorial on .htaccess files.

Logging#

By default, Apache HTTP access and error logs are located in the logs/apache2/ directory (when accessed via SFTP).

For details see Logging on CodeRed Cloud.