ReverseProxy serves blank page

Heelo! I 'm trying to make a single web interface for a couple docker-compose apps I have running on an Ubuntu 20.04 server. I want to access these services behind a reverse proxy, and am implementing that system in my code. Go Playground - The Go Programming Language

I can see there is some connectivity, for Service 1 curl says 200, but gives a completely blank page in browser. And it’s the same output if I ping service 1 directly.

$ curl -I -L sub1.example.com:8080                                                                                      
HTTP/1.1 200 OK                                                                                                       
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0                              
Content-Length: 522375                                                                                                
Content-Type: text/html; charset=utf-8                                                                                
Etag: "9b42b********************21be3733876e3b1"                                                                      
Expires: -1                                                                                                           
Last-Modified: Thu, 20 Jan 2022 11:26:56 GMT                                                                          
Pragma: no-cache                                                                                                      
X-Clacks-Overhead: GNU Terry Pratchett                                                                                
X-Content-Type-Options: nosniff                                                                                       
X-Frame-Options: sameorigin                                                                                           
X-Robots-Tag: noindex, nofollow, noimageindex                                                                         
Date: Sat, 05 Feb 2022 22:16:01 GMT

sub2 shows a 404 message - but it does redirect the url to “Location” (that’s why I think there is some sort of conn happening)

$ curl -I -L sub2.example.com:8080                                                                                      
HTTP/1.1 302 Found                                                                                                    
Content-Language: en                                                                                                  
Content-Length: 0                                                                                                     
Content-Type: text/html; charset=utf-8                                                                                
Date: Sat, 05 Feb 2022 22:18:54 GMT                                                                                   
Location: /accounts/login/?next=/                                                                                     
Server: nginx/1.18.0 (Ubuntu)                                                                                         
Vary: Accept-Language, Cookie                                                                                         
                                                                                                                      
HTTP/1.1 404 Not Found                                                                                                
Content-Type: text/plain; charset=utf-8                                                                               
X-Content-Type-Options: nosniff                                                                                       
Date: Sat, 05 Feb 2022 22:18:54 GMT                                                                                   
Content-Length: 19

If I ping service 2 directly I get a 200

$ curl -I -L 172.23.0.4
HTTP/1.1 302 Found                                                                                                    
Server: nginx/1.18.0 (Ubuntu)                                                                                         
Date: Sat, 05 Feb 2022 22:21:53 GMT                                                                                   
Content-Type: text/html; charset=utf-8                                                                                
Content-Length: 0                                                                                                     
Connection: keep-alive                                                                                                
Location: /accounts/login/?next=/                                                                                     
Vary: Accept-Language, Cookie                                                                                         
Content-Language: en                                                                                                  
                                                                                                                      
HTTP/1.1 200 OK                                                                                                       
Server: nginx/1.18.0 (Ubuntu)                                                                                         
Date: Sat, 05 Feb 2022 22:21:53 GMT                                                                                   
Content-Type: text/html; charset=utf-8                                                                                
Content-Length: 12060                                                                                                 
Connection: keep-alive                                                                                                
Expires: Sat, 05 Feb 2022 22:21:53 GMT                                                                                
Cache-Control: max-age=0, no-cache, no-store, must-revalidate                                                         
Vary: Cookie, Accept-Language                                                                                         
Content-Language: en                                                                                                  
Set-Cookie: sfcsrftoken=DAgNIckiQcyvy4********************8KHrYcSpvHf11HOfNu6x01bgiybpNH; expires=Sat, 04 Feb 2023 22:21:53 GMT; Max-Age=31449600; Path=/; SameSite=Lax                                                                     
Set-Cookie: sessionid=yzj9cjvh3thhx8lqudqj0tf90dqxcu1i; expires=Sun, 06 Feb 2022 22:21:53 GMT; HttpOnly; Max-Age=86400; Path=/; SameSite=Lax

Any help would be extremely appreciated!! thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.