• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Forward subdomain to a port

ninerian

New Pleskian
Hello,

I have Sentry installed on our second server and want to access it over a subdomain. The main domain is directed to the Server 1, the subdomain should point to server 2 and there to port 9000 where the sentry installation runs.

I use the following installation:

Server 1
sentry.domain.de redirected per DNS to Server 2

Server 2
domain.de only created for the subdomain
sentry.domain.de as webhosting with nginx, actually points to the sentry folder

When I access the sentry subdomain, I get an 403 Forbidden error, cause there is no index.html in the folder. As I changed the forwarding in the nginx.conf manually to the port 9000 for all entries, I get Error 400 Bad Request. And it seems, that the access is catched by the rules in the domain. I also tried to create a location /sentry and forward it to port 9000, but the same error.

Could you help me, how I can achieve the correct forwarding?

Many thanks

Ninerian
 
Back
Top