Skip to content

Instantly share code, notes, and snippets.

@azole
Created June 17, 2024 09:57
Show Gist options
  • Save azole/277fbf99ca3e4f79fdd9dbe0d5775dc6 to your computer and use it in GitHub Desktop.
Save azole/277fbf99ca3e4f79fdd9dbe0d5775dc6 to your computer and use it in GitHub Desktop.
Hands-on 01
server {
listen 8080;
server_name localhost;
#access_log /var/log/nginx/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple HTML Example From srcmesh</title>
</head>
<body>
<h1>Hello, Docker!</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment