nginx webp and server name
All checks were successful
Jekyll site CI / docker (push) Successful in 2m53s
All checks were successful
Jekyll site CI / docker (push) Successful in 2m53s
This commit is contained in:
parent
fa8f43ea39
commit
940ab0934b
@ -7,13 +7,13 @@ map $http_accept $webp_suffix {
|
|||||||
# Map to capture the image path *without* the file extension
|
# Map to capture the image path *without* the file extension
|
||||||
# This regex captures everything before the last dot and jpg/jpeg/png extension
|
# This regex captures everything before the last dot and jpg/jpeg/png extension
|
||||||
map $uri $image_path_without_ext {
|
map $uri $image_path_without_ext {
|
||||||
~^(?<captured_path>.+)\.(?:jpe?g|png)$ $captured_path;
|
~*^(?<captured_path>.+)\.(?:jpe?g|png)$ $captured_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
server_name localhost; # Replace localhost with your actual domain if needed
|
server_name server_name steffenillium.de *.steffenillium.de;
|
||||||
|
|
||||||
# Define the root directory for your website files
|
# Define the root directory for your website files
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user