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
Uh oh!
There was an error while loading. Please reload this page.
-
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
rewriterules, one inlocation @lycheeinvoked bytry_filesand 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.phpfor? According to the documentation, it does something with$fastcgi_script_name. But I usedlog_formatto view the value of$fastcgi_script_nameand it looked correct (/lychee/index.php). Removingfastcgi_indexdidn't change anything.Why the
location ^~ /lycheeinstead oflocation /lychee?This seems to be working for me:
Beta Was this translation helpful? Give feedback.
All reactions