Add rsa blog server to nginx config.
@@ -39,6 +39,18 @@ stream {
listen 61611;
proxy_pass satvm02.researchstudio.at:61621;
}
+
+ map $ssl_preread_server_name $selected_upstream {
+ researchstudio.at rsa_upstream;
+ default default_upstream;
+ }
+ upstream rsa_upstream { server satvm07.researchstudio.at:443; }
+ upstream default_upstream { server localhost:444; }
+ server {
+ listen 443;
+ proxy_pass $selected_upstream;
+ ssl_preread on;
+ }
}
# https config
@@ -95,7 +107,7 @@ http {
# pass https requests to owner instances
server {
ssl on;
- listen 443 ssl;
+ listen 444 ssl;
root /data;
server_name www.matchat.org;
@@ -183,7 +195,7 @@ http {
# pass https requests to node instances
server {
ssl on;
- listen 443 ssl;
+ listen 444 ssl;
root /data;
server_name node.matchat.org;
@@ -250,7 +262,7 @@ http {
# pass https requests to owner instances
server {
ssl on;
- listen 443 ssl;
+ listen 444 ssl;
root /data;
server_name ownerblue.master.matchat.org;
@@ -319,7 +331,7 @@ http {
# pass https requests to owner instances
server {
ssl on;
- listen 443 ssl;
+ listen 444 ssl;
root /data;
server_name ownergreen.master.matchat.org;
@@ -382,7 +394,7 @@ http {
# pass https requests to node instances
server {
ssl on;
- listen 443 ssl;
+ listen 444 ssl;
root /data;
server_name nodeblue.master.matchat.org;
@@ -443,7 +455,7 @@ http {
# pass https requests to node instances
server {
ssl on;
- listen 443 ssl;
+ listen 444 ssl;
root /data;
server_name nodegreen.master.matchat.org;
@@ -481,5 +493,13 @@ http {
}
}
- include /etc/nginx/conf.d/*.conf;
+ server {
+ listen 80;
+ server_name *.researchstudio.at;
+
+ location / {
+ proxy_pass http://satvm07.researchstudio.at:80;
+ }
+ }
+
}
