I have pic.bz which maps as cname to picncatch.com
but Now I want *.pic.bz to map picncatch.com
how to achieve in frappe?
I have pic.bz which maps as cname to picncatch.com
but Now I want *.pic.bz to map picncatch.com
how to achieve in frappe?
You can handle this with Nginx configuration using 301 redirect.
Your configuration will depend if you are using SSL termination on the Nginx
server that’s also running your frappe server or if you are using Frappecloud.
Where is SSL terminated (do you have an upstream proxy server)?
Strictly speaking about port 80 (no SSL termination):
server {
listen 80;
server_name *.pic.bz;
return 301 https://pincatch.com$request_uri;
}
site_config.json
“domains”: [
{
“ssl_certificate”: “/etc/letsencrypt/…”,
“ssl_certificate_key”: “/etc/letsencrypt/…”,
“domain”: “*.pic.bz”
},
{
“ssl_certificate”: “/etc/letsencrypt/…”,
“ssl_certificate_key”: “/etc/letsencrypt/…”,
“domain”: “pic.bz”
}
],
is any issue here?
not worked. Thanks though
Perhaps you should explain your desired behavior.
Do you want “subdomain.pic.bz” to resolve in frappe as “subdomain.pic.bz/app/home” or do you want it rewritten/redirected as
“pincatch.com/app/home”?