Re: Help with static content

2021-11-03 Thread deeztek
So after some more trial and error, I was able to display static content by including the following: location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2|map)$ { # Some basic cache-control for static files to be sent to the browser expires max; add_header Pragma public; add_head

Re: Help with static content

2021-11-03 Thread deeztek
I ran it and there were no problems found. I think there is a misunderstanding. There are no errors in Nginx. Nginx starts with no problem and I'm able to access the application. The only problem is that static content is not being served when I configure and use a FQDN to access the application.

Re: Help with static content

2021-11-03 Thread basti
Check your config with 'nginx -T | less' for 'server_name _'. This is a catch_all as described in the docs. On 02.11.21 22:50, deeztek wrote: > I already tried that with same results. > > Posted at Nginx Forum: > https://forum.nginx.org/read.php?2,292742,292744#msg-292744 > > __

Re: Help with static content

2021-11-02 Thread deeztek
I already tried that with same results. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,292742,292744#msg-292744 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Help with static content

2021-11-02 Thread basti
First of all try to add a "server_name". See http://nginx.org/en/docs/http/server_names.html Am 02.11.21 um 20:46 schrieb deeztek: > I'm having a problem with Nginx serving static content (.css, .js, .png, > .jpg etc.). > > In the below configuration, if I access the server via IP address static