Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Nginx Proxy - redirecting Site A to Site B
Post Flair (click to view more posts with a particular flair)
Post Body

I'm not sure what is happening, but I have the following setup:

2 Servers - An App Server and an Nginx Proxy Server App Server has 2 distinct wordpress apps running on httpd. Proxy server redirects traffic to both apps. For the app server, lets call the apps 'app1' and 'site2' to distinguish the applications.

App1 runs on 443 Site2 runs on 7443 I have an nginx proxy config (under the conf.d directory) located here - https://pastebin.com/VAQ1fFrV - and each site is split up for easy reading.

What I cant understand is this:

Whenever I try to go to the nginx proxy address for site 2 (site2.serverhostname.com) it always, without fail, redirects me to app1.serverhostname.com.

I've never run into this before setting up similar proxies and sites. So I'm unsure why this is now happening. I am at a loss as to why nginx is behaving in this way.

If it helps, in my pastebin I've included the nginx config and the apache httpd config. Hope to hear soon.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
34,349
Link Karma
3,057
Comment Karma
31,179
Profile updated: 4 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago