I’m facing a rather infuriating issue. I have Ghost running on a domain on my Nginx server. I have multiple domains running all kinds of things on this server.
Ghost is running at domainA.com.
A WordPress install is running domainB.com
A nodeJS install is running om sub.domainA.com
Now I want to run a React app on sub.domainB.com but whatever I do, the sub.domainB.com keeps redirecting me to Ghost on domainA.com
I can’t “untie” Ghost from this subdomain no matter what I tried. I removed all related sites-directives, rebooted Nginx, created it anew, rebooted again, it still keeps pointing to Ghost.
I’m getting at the point to just delete Ghost alltogether just to get this shit to work
I have no clue why Ghost is taking THIS subdomain specifically, because no other domains do anything like this (note that the domainB.com I want to run the subdomain on isn’t even running Ghost at all).
This is the nginx server config for the subdomain: I’ve updated the ports to TRY and have Ghost not running on here, but whatever I do, it keeps showing up…
server {
listen 6666;
listen [::]:6666;
root /var/www/subB;
index index.php index.html index.htm index.nginx-debian.html;
server_name sub.domainB.com;
location / {
try_files $uri $uri/ /index.php?$args;
proxy_pass http://localhost:6666;
}
location ~ /\.ht {
deny all;
}
}
I’m going insane, what do I do?!