Hi,
Im having a problem with subdomains using this container. SSL working just fine, but when I try to work with subdomains what happens is all subdomains behaves like the domain itself... it ignores config files and no maptter what subdomain i enter, it all goes to default server config and its locations...
Config files for my subdomains which I use are the same I used for my previous NGINX container where it was working correctly.
Can you please advise what should I do to make it work?
Default:
server {
listen 80 default_server;
#listen [::]:80 default_server ipv6only=on;
listen 443 ssl;
index index.html index.htm index.php;
server_name _;
ssl_certificate /config/keys/fullchain.pem;
ssl_certificate_key /config/keys/privkey.pem;
ssl_dhparam /config/nginx/dhparams.pem;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_prefer_server_ciphers on;
client_max_body_size 0;
location / {
root /config/www;
try_files $uri $uri/ /index.html /index.php?$args =404;
}
}
MyDomain:
server {
listen 80;
server_name inside.xxxxx.com;
location /jenkins {
include /config/nginx/proxy.conf;
proxy_pass http://192.168.100.210:8080/jenkins/;
}
}