[GLLUG] nginx oops!
John Winters
john at sinodun.org.uk
Sun Nov 29 14:20:02 UTC 2020
On 29/11/2020 13:46, MJ via GLLUG wrote:
[snip default configuration]
> upstream diaspora_server {
> server unix:/home/diaspora/diaspora/tmp/diaspora.sock;
> }
Ah - you're trying to use Nginx as a front-end to some kind of server
software.
[snip]
> root /home/diaspora/diaspora/public;
>
> client_max_body_size 5M;
> client_body_buffer_size 256K;
>
> try_files $uri @diaspora;
>
> location /assets/ {
> expires max;
> add_header Cache-Control public;
> }
> location @diaspora {
> proxy_set_header X-Real-IP $remote_addr;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_set_header X-Forwarded-Proto https;
> proxy_set_header Host $http_host;
> proxy_redirect off;
> proxy_pass http://diaspora_server;
> }
> }
So you've told Nginx first to try serving files from
/home/diaspora/diaspora/public, and if not found there to pass requests
on to the diaspora server. Is that server actually running and
listening for requests?
John
--
Xronos Scheduler - https://xronos.uk/
All your school's schedule information in one place.
Timetable, activities, homework, public events - the lot
Live demo at https://schedulerdemo.xronos.uk/
More information about the GLLUG
mailing list