Welcome! Log In Create A New Profile

Advanced

Re: Help with static content

November 03, 2021 03:29PM
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_header Cache-Control "public, must-revalidate, proxy-revalidate";
}

and adding a root:

root /var/www/html/;

However, this breaks the Authelia authentication server which lives on /

So, what I REALLY need to figure out is how to create a static location like above but instead of ~* have it specific for a location like /admin

How would I go about accomplishing that??
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: 280
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready