Add custom index.html

This commit is contained in:
Catalin Constantin Mititiuc 2025-06-22 15:03:51 -07:00
parent 6d3e34b8b1
commit b5757a6c91
2 changed files with 14 additions and 2 deletions

View File

@ -20,7 +20,7 @@ server {
#access_log /var/log/nginx/host.access.log main; #access_log /var/log/nginx/host.access.log main;
location / { location / {
root /usr/local/openresty/nginx/html; root /var/www;
index index.html index.htm; index index.html index.htm;
} }
@ -30,7 +30,7 @@ server {
# #
error_page 500 502 503 504 /50x.html; error_page 500 502 503 504 /50x.html;
location = /50x.html { location = /50x.html {
root /usr/local/openresty/nginx/html; root /var/www;
} }
# proxy the PHP scripts to Apache listening on 127.0.0.1:80 # proxy the PHP scripts to Apache listening on 127.0.0.1:80

12
html/index.html Normal file
View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
</head>
<body>
hello world!
</body>
</html>