NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
22.67k stars 2.64k forks source link

www. not working #2174

Open wneiner opened 2 years ago

wneiner commented 2 years ago

Checklist

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

xstar97 commented 2 years ago

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.

obsidiangroup commented 2 years ago

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.

wneiner commented 2 years ago

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!

xstar97 commented 2 years ago

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.....

wneiner commented 2 years ago

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!

github-actions[bot] commented 4 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1: