Skip to content

Instantly share code, notes, and snippets.

@icu0755
Created August 11, 2023 05:45
Show Gist options
  • Save icu0755/246e81a1677863f00a320f0051ba39e2 to your computer and use it in GitHub Desktop.
Save icu0755/246e81a1677863f00a320f0051ba39e2 to your computer and use it in GitHub Desktop.
nginx responding hello nginx with max throughput
user www-data;
worker_processes 8;
error_log off;
pid logs/nginx.pid;
events {
worker_connections 4096;
use epoll;
}
http {
include mime.types;
default_type text/html;
access_log off;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
gzip on;
server {
listen 80 backlog=4096;
server_name icu0755.devhands.cloud;
location / {
return 200 "Hello, Nginx!\n";
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment