This repository was archived by the owner on Jun 24, 2022. It is now read-only.
forked from henridwyer/docker-letsencrypt-cron
-
Notifications
You must be signed in to change notification settings - Fork 197
Subdomains routed wrong #36
Copy link
Copy link
Open
Description
I don't know if this is a nginx problem or a container problem, but here is the issue I'm facing: I have created a conf template for my static subdomains:
server {
listen 443 ssl;
server_name [sub].domain;
ssl_certificate /etc/letsencrypt/live/domain/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain/privkey.pem;
root /var/www/[sub].domain;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}
The problem is that some subdomains redirect to other sites I have configured (in particular the first in alphabetical order, eg. aa.com)
What could be this issue caused by? I've tried running nginx -t but all the configurations I'm running are fine.
Permissions are fine too (for testing purposes I've even tried chmod 777 without any luck).
Metadata
Metadata
Assignees
Labels
No labels