Apache_userdir


Table of Contents
1. User websites (userdir)
1.1. What is User websites?
1.2. Screenshot
1.3. Using User websites
1.4. Using SFTP to create public_html and upload documents

1. User websites (userdir)

1.1. What is User websites?

User websites is a module of the Apache webserver enabled to allow users defined in the FreedomBox system to expose a set of static files on the FreedomBox filesystem as a website to the local network and/or the internet according to the network and firewall setup.

Application basics

Category

File sharing

Available since version

0.9.4

Upstream project website

https://httpd.apache.org/docs/2.4/mod/mod_userdir.html

Upstream end user documentation

https://httpd.apache.org/docs/2.4/howto/public_html.html


1.3. Using User websites

The module is always enabled and offers no configuration from the Plinth web interface. Currently its existence is not even visible in the Plinth web interface.

Using the modules capability to serve documents requires just to place the documents in the designated directory in a Plinth user's home directory in the filesystem.

This directory is: public_html

Thus the absolute path for the directory of a user named fbx with home directory in /home/fbx will be /home/fbx/public_html. User websites will serve documents placed in this directory when requests for documents with the URI path "~fbx" are received. For the the example.org domain thus a request for the document example.org/~fbx/index.html will transfer the file in /home/fbx/public_html/index.html.