nginxCatch all domains with one config
server {
listen 80 default_server;
}
ctrl + c
default_server lets nginx know that this |
More of Nginx
- Using regex in map
- Using open_file_cache to optimize file access
- Using location with regex
- How to use location config
- Reload configuration without connections dropping
- Using nested locations
- Using try_files
- Using internal redirects
- Using Nginx as a load balancer
- Using if else condition
See more codes...