Replies: 1 comment
-
Hi @jeanas I am sorry, but I am not familiar with that approach. Maybe @d7415 can help you on that one. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This FAQ suggests the following nginx configuration to serve Lychee from a subdirectory:
I'm new to nginx, and I'm not sure I fully understand how this works.
Why the two separate
rewrite
rules, one inlocation @lychee
invoked bytry_files
and one inif (!-e $request_filename)
? I tried with the latter commented out and it still seemed to work.Why
location ~ \.php$
? AFAICS Lychee has only one PHP file,index.php
.What is
fastcgi_index index.php
for? According to the documentation, it does something with$fastcgi_script_name
. But I usedlog_format
to view the value of$fastcgi_script_name
and it looked correct (/lychee/index.php
). Removingfastcgi_index
didn't change anything.Why the
location ^~ /lychee
instead oflocation /lychee
?This seems to be working for me:
Beta Was this translation helpful? Give feedback.
All reactions