Welcome! Log In Create A New Profile

Advanced

Re: Help with static content

November 03, 2021 06:44AM
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. When I switch to IP it all works. Part of the problem is the fact that the / location has to be used by the Authelia authentication server in order to intercept traffic destined for the /admin location and present a login. So I believe that's why the following does not make a difference because it configures the / location which is used by the Authelia authentication server:

location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
# Some basic cache-control for static files to be sent to the browser
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
}

Is there a way to configure something like above for another location besides ~* ?

Thanks
Subject Author Posted

Help with static content

deeztek November 02, 2021 03:46PM

Re: Help with static content

basti November 02, 2021 04:14PM

Re: Help with static content

deeztek November 02, 2021 05:50PM

Re: Help with static content

basti November 03, 2021 04:26AM

Re: Help with static content

deeztek November 03, 2021 06:44AM

Re: Help with static content

deeztek November 03, 2021 03:29PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 108
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready