Skip to content

Instantly share code, notes, and snippets.

@Ancillas
Created June 14, 2025 05:19
Show Gist options
  • Select an option

  • Save Ancillas/364e1944422c9f4aeddaaee3bc352625 to your computer and use it in GitHub Desktop.

Select an option

Save Ancillas/364e1944422c9f4aeddaaee3bc352625 to your computer and use it in GitHub Desktop.
Basic Nginx Config
worker_processes auto;
events {
worker_connections 1024;
}
http {
keepalive_timeout 65;
server {
listen 80;
server_name a.com;
location / {
root sites/a;
index index.html;
}
}
server {
listen 80;
server_name b.com;
location / {
root sites/b;
index index.html;
}
}
server {
listen 80;
server_name c.com;
location / {
root sites/c;
index index.html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment