nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

www. not working

Open wneiner opened this issue 3 years ago • 6 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug The www. prefix is not working with my URLs.

Nginx Proxy Manager Version 2.9.18

To Reproduce Steps to reproduce the behavior:

  1. create url
  2. test url
  3. find that www. option will not work

Expected behavior that both url with or without the www. will work to access the site.

Screenshots

Operating System

Additional context

wneiner avatar Jul 27 '22 18:07 wneiner

can you give an example?

are you trying www.mydomain.com or www.app.mydomain.com?

did you create the cname record(s) that points to the A record? or.......A records like www to MY_PUBLIC_IP.

xstar97 avatar Jul 28 '22 19:07 xstar97

Just because you add an entry to NPM does not mean that www.. will automatically work.

First, as @Xstar97 asked, do you have a CNAME entry setup for the domain, and when you created the proxy host, when entering the name, did you also enter 'www..'.

NPM does not automatically add wildcards or www, rather it uses exactly what you put. Try editing the domain, and adding 'www..' to the server name, and adding the cname.

obsidiangroup avatar Jul 29 '22 21:07 obsidiangroup

Hello, this is good to know. I do want it to be enabled for all of the *.domain.com addresses.

I do not have a CNAME, but instead A names pointing to the www. and non-www.

I change my proxy host in NPM and make it www.domain.com and then change my A name to a CNAME in cloudflare?

Thank you!

wneiner avatar Aug 02 '22 16:08 wneiner

Hello, this is good to know. I do want it to be enabled for all of the *.domain.com addresses.

I do not have a CNAME, but instead A names pointing to the www. and non-www.

I change my proxy host in NPM and make it www.domain.com and then change my A name to a CNAME in cloudflare?

Thank you!

~~typically, i just use a single "*" CNAME that points to mydomain.com which is universal and i dont need to add XXX amount A/CNAME records.~~

this was bad advice and recommend not doing it.....

xstar97 avatar Aug 02 '22 23:08 xstar97

Thank you for the clarification. I didn't create a new a/cname for all of my subdomains. Only an A for domain.com and an A for www. and an A for *.

I will work to change these to a CNAME.

Thank you again!

wneiner avatar Aug 03 '22 14:08 wneiner