Fix static serving with Staticfile
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
push_state: enabled
|
||||||
|
|||||||
24
nginx.conf
24
nginx.conf
@@ -1,24 +0,0 @@
|
|||||||
events {
|
|
||||||
worker_connections 1024; # Maximum simultaneous connections per worker
|
|
||||||
}
|
|
||||||
|
|
||||||
http {
|
|
||||||
include mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80;
|
|
||||||
server_name localhost; # Or your domain name
|
|
||||||
|
|
||||||
location / {
|
|
||||||
root /var/www/html; # Directory where your files are located
|
|
||||||
index index.html index.htm;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Custom error page for 404
|
|
||||||
error_page 404 /404.html;
|
|
||||||
location = /404.html {
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user