You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-setups.md
+59Lines changed: 59 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -290,4 +290,63 @@ To avoid latency when clicking Diagnostics, my suggestion is to disable BasicPer
290
290
### Limitations to be considered
291
291
As explained before, recursive tasks are penalised in Object Storage, so if you have an existing bucket and the container runs for the first time, it will take long time to review and set the permissions in your mount. Depending on the number of photos, it can take several hours.
292
292
293
+
## Hosting Lychee in a subpath with Apache
294
+
295
+
To serve Lychee in a subpath, e.g. `https://my.url/photos/`, we can use Apaches's [Alias](https://httpd.apache.org/docs/2.4/mod/mod_alias.html#alias)-directive.
296
+
297
+
In this example we assume the web root to be located at `/var/www/html`, the web user and group to be `www-data`, and install [from the master branch](installation.html#from-the-master-branch).
298
+
299
+
Before getting started, make sure your system qualifies the [Server Requirements](installation.html#server-requirements).
300
+
301
+
### Setup Lychee
302
+
303
+
Clone the repository to outside the web root, e.g. `/var/www/`:
Install composer in `/var/www/Lychee` as instructed in [here](https://getcomposer.org/download/). Then, from `/var/www/Lychee`, install the project dependencies:
Link `https://my.url/photos/` to `/var/www/Lychee/public` by adding the following to your Apache configuration for Aliases. In Apache 2.4 running on Debian, the correct configuration file is `/etc/apache2/mods-available/alias.conf`.
325
+
326
+
```apacheconf
327
+
Alias /photos /var/www/Lychee/public
328
+
329
+
<Directory /var/www/Lychee/public>
330
+
Options FollowSymLinks
331
+
AllowOverride All
332
+
Require all granted
333
+
</Directory>
334
+
```
335
+
336
+
Finally, restart Apache:
337
+
338
+
```bash
339
+
sudo service apache2 restart
340
+
```
341
+
342
+
### Configure Lychee
343
+
344
+
At this point, you should be able to go to `https://my.url/photos/` and run the web installer. During the installation procedure, on top of adding the database credentials to match your setup, set your `APP_URL` to the served subdirectory:
0 commit comments