Changes for page Interactive Web Sites
Last modified by Thomas Coelho (local) on 2024/07/03 10:58
From version 1.1
edited by Thomas Coelho (local)
on 2024/05/15 13:06
on 2024/05/15 13:06
Change comment:
There is no comment for this version
To version 1.2
edited by Thomas Coelho (local)
on 2024/05/15 13:12
on 2024/05/15 13:12
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -7,4 +7,25 @@ 7 7 It is based on systemd services. Like any system service, services can also run in a user context and under control of the user. Instead of a common web server which delivers files from the public_html directory, a dedicated Apache instance is executed in the users context. There are some prerequisites, which must configure by the admins: 8 8 9 9 1. A lingering user session. Normally the session is started with the login of the user. A lingering session is start on boot. This is allows the start of the services at boot time. 10 -1. A Proxy redirect. The frontend reverse proxy must be configured to forward request to the specific Apache instance. 10 +1. A Proxy redirect. The frontend reverse proxy must be configured to forward request to the specific Apache instance. This allows also second level domains. 11 + 12 += Setting up = 13 + 14 +On the web server (this is currently web3) the script **install-apache-worker** needs to be run to prepare the environment after the prerequisites have been set up. The main job of the script it to prepare the runtime environment below .apache-service and to install the systemd service file. This can be read (and modified if needed) in **.config/systemd/user/apache-worker.service.** 15 + 16 +{{code language="systemd"}} 17 +[Unit] 18 +Description=Apache Userspace worker for thw 19 +RequiresMountsFor=/home/thw 20 +ConditionHost=web3 21 + 22 +[Service] 23 +ExecStart=/usr/sbin/apache2 -d/home/thw/.apache-service -DNO_DETACH 24 +WorkingDirectory=/home/thw 25 + 26 +[Install] 27 +WantedBy=default.target 28 + 29 +{{/code}} 30 + 31 +