Unable to resolve to HTTPS address

Note - If you do not fill in every section below, your post won’t be answered - you must provide the steps you have followed so far and the actions you’ve already taken. Make sure to remove this notice from your post too.

Make sure you search before posting! Duplicate posts for the same issue may not be answered.

OS Name/Version: Ubuntu/24.04

Product Name/Version: AMP version 2.6.0.2 (Phobos), built 30/10/2024 22:00

Problem Description: HTTPS unresolvable

If you're sharing console output, logs, or commands you have run, please make sure to use code tags 
(3x backticks for blocks, 1x backtick for a single line) to help make posts readable. This also
provides syntax highlighting.

Steps to reproduce:

I initially attempted this using a Windows server, and tried connecting it to IIS.
I’ve tried following these instructions, but the instructions aren’t great…

Since then, I gave up on Windows and attempt Ubuntu installed, (twice now) - the installation appears successful, and when it prompts me to finish up by going to the URL, it doesn’t resolve.

Actions taken to resolve so far:
I’ve opened ports 80/443 on my gateway to this specific server, I’ve created records for my url to point to my public IP. There is no firewall on by default in ubuntu.
I’m assuming the ssl certificate creation was successful.

I can resolve the url by going to “serverIP:8080”

Assuming you’re using the built-in HTTPS setup, do you have DNS records set up pointing at your public IP? (if you’re using CloudFlare make sure their proxy is disabled).
Another sanity check would be to see if your ISP blocks those ports for some weird reason.

I ended up getting this to work.
Unfortunately, I have a dedicated Windows web server using IIS with ports 80/443 already forwarding to it. I turned that off during my testing and forwarded ports to my AMP server and with a HOSTS file adjustment I was able to resolve to the subdomain.

Unfortunately, I need my web server, so I am going to have to figure out how to get AMP running on my web server as a Controller and then setup a Linux target on the backend… not really looking forward to that since all my attempts with Windows and SSL certificates have failed. :frowning:

I personally don’t use IIS at all, but most reverse proxies should support proxying different subdomains to different backend webservers. Eg have one IIS/Caddy/Nginx program running for multiple webservers (the reverse proxy doesn’t have to be on the same machine as AMP).

So the scope has changed a bit as I play around with this and try to figure out what would work best for my use-case

I re-attempted installing AMP on my IIS Web server to host the “front end” Controller for logging-in etc. I got this to work with caddy, got the domain to resolve using HTTPS and everything works great… *when IIS is turned off.

I believe IIS is hogging all the ports and won’t allow Caddy to assign a port while it is running. Any ideas on how I can get ISS and Caddy to run at the same time?
I understand this may be outside the scope of these forums, but maybe someone can come up with a creative solution.

I’ve also posted in the Caddy forums

Yeah, you can’t run two reverse proxies at the same time, since they both require ports 80 and 443.
Imo it might be best to do everything using Caddy, as it’s config format is pretty user friendly.

Ya l’m not sure Caddy for all my sites is going to be feasible at the moment.
I’m curious if anyone has actually gotten these instructions to work:

I receive a 500 error when I attempt even with using CertifyTheWeb…

EDIT:
I ended up getting the instructions to work after doing a lot of research outside of this apparent “how to”

Gotta say, those instructions really left me wanting. I’m more than happy to edit them to appropriately educated people on how to configure IIS to use a reverse proxy if anyone is interested…

EDITEDIT:
The login page is resolving, but now I’m receiving a Unknown Reason (null) when I attempt to login

[01:12:07] [Core Error/8]         : NullReferenceException
[01:12:07] [Core Error/8]         : [0] (NullReferenceException) : Object reference not set to an instance of an object.
[01:12:07] [Core Error/8]         :    at GSMyAdmin.Authentication.InternalAuth.Authenticate(HttpRequest Request, String Username, String Password, String Token, Boolean TokenRequested)
   at GSMyAdmin.WebServer.WebMethods.Login(HttpRequest request, String username, String password, String token, Boolean rememberMe)
   at GSMyAdmin.WebServer.WebAttributes.InvokeMethod(String MethodName, JObject Data, HttpContext context, IWebSession Session, WebMethodsBase MethodsClass, IPAddress RealIP)
   at GSMyAdmin.WebServer.ApiService.InvokeAPI(HttpContext context, IWebSession Session, JObject Data, String RequestModule, String RequestMethod)

Interesting… when I set Webserver.UsingReverseProxy=False it fixes the login NULL issue…