Hi,
it is me again. My flarum site should run now, but it does not load the assets folder correctly.
In my setup I have a nginx-proxy listening on domain.com and location /forum is passed via proxy_pass to my container running flarum with nginx, php71, mysql56.
So domain.com/forum is should be for the container /. Therefor I adjusted the rewrite rules:
location /forum/ { try_files $uri $uri/ /index.php?$query_string; }
location /forum/api { try_files $uri $uri/ /api.php?$query_string; }
location /forum/admin { try_files $uri $uri/ /admin.php?$query_string; }
The page does load, and I see a blank page with an title. If i try to open the forum-xyz.css in my browser I get an 404.
In my container I get following error:
2018/04/01 10:23:46 [error] 69999#100212: *7 open() "/usr/local/www/flarum/forum/assets/forum-en-df77f08d.js" failed (2: No such file or directory), client: 10.1.1.10, server: 10.1.1.17, request: "GET /forum/assets/forum-en-df77f08d.js HTTP/1.0", host: "10.1.1.17", referrer: "https://domain.com/forum/"
/user/local/www/flarum is the root directory and not /usr/local/www/flarum/forum. So I need to redirect the request for CSS.
What would be the best way to solve this?
Thanks for your help. Cheers