2017-11-01 23:37:10 +00:00
|
|
|
worker_processes 1;
|
|
|
|
|
|
|
|
events {
|
|
|
|
worker_connections 1024;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
http {
|
|
|
|
server {
|
|
|
|
listen 80;
|
2017-11-02 20:34:07 +00:00
|
|
|
root /usr/share/nginx/html/home;
|
2023-01-12 10:57:44 +00:00
|
|
|
server_name ~^home\.example([0-9])*\.com$;
|
2017-11-01 23:37:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
2017-11-02 20:34:07 +00:00
|
|
|
root /usr/share/nginx/html/public;
|
2023-01-12 10:57:44 +00:00
|
|
|
server_name ~^public\.example([0-9])*\.com$;
|
2017-11-01 23:37:10 +00:00
|
|
|
}
|
|
|
|
|
2019-03-03 22:51:52 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
root /usr/share/nginx/html/secure;
|
2023-01-12 10:57:44 +00:00
|
|
|
server_name ~^secure\.example([0-9])*\.com$;
|
2019-03-03 22:51:52 +00:00
|
|
|
}
|
|
|
|
|
2017-11-01 23:37:10 +00:00
|
|
|
server {
|
|
|
|
listen 80;
|
2017-11-02 20:34:07 +00:00
|
|
|
root /usr/share/nginx/html/admin;
|
2023-01-12 10:57:44 +00:00
|
|
|
server_name ~^admin\.example([0-9])*\.com$;
|
2017-11-01 23:37:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
2017-11-02 20:34:07 +00:00
|
|
|
root /usr/share/nginx/html/dev;
|
2023-01-12 10:57:44 +00:00
|
|
|
server_name ~^dev\.example([0-9])*\.com$;
|
2017-11-01 23:37:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
2017-11-02 20:34:07 +00:00
|
|
|
root /usr/share/nginx/html/mail;
|
2023-01-12 10:57:44 +00:00
|
|
|
server_name ~^(mx[1-2])\.mail\.example([0-9])*\.com$;
|
2017-11-01 23:37:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
2019-03-03 22:51:52 +00:00
|
|
|
root /usr/share/nginx/html/singlefactor;
|
2023-01-12 10:57:44 +00:00
|
|
|
server_name ~^singlefactor\.example([0-9])*\.com$;
|
2017-11-01 23:37:10 +00:00
|
|
|
}
|
|
|
|
}
|