How to merge 3 subdomains into main domain in cakephp - cakephp-3.0

How to merge 3 subdomains into main domain in cakephp.
I have 1 domain abc.com , and 3 sub-domain ,subdomain1.abc.com, subdomain2.abc.com , subdomain3.abc.com. I am using cakephp 3.0 .All 4 (domain and subdomain) have different different database, url and data flow with respect to its url.

Related

How to create or get a domain name as mentioned in step 2 in AKS

https://github.com/kubernetes/ingress-nginx/tree/main/docs/examples/grpc
In the above link under Prerequisites - 2nd point, it is mentioned to have a domain name configured to Ingress controller.
How to create or get a domain name in AKS?
I have a grpc application, trying to implement the same steps.
You have two Options, for both you need an own a domain Name (you can buy it at namecheap.com or godaddy.com).
First option: Switch the domain DNS resolution to Azure..
Second option: Create the AKS and add it as CNAME (AKS public FQDN, i would prefer this over using the IP) to the DNS records of your domain.

Dynamic Subdomain Routing With NextJS

How can the Dynamic Sub domain routing feature be implementing in NextJS?
Example: If a user comes with username abc in site xyz then he can access his
site on abc.xyz.com
Also, if the user have abc.com domain then he can point abc.com to abc.xyz.com
So in future if someone opens abc.com then abc.xyz.com is served. And in URL
also the abc.com is shown.
I have investigated few plugin in NPM like vhost and wildcard-subdomains but not sure that is right way to take on this issue.
The vhost requires changes in system hosts in local system and wildcard-subdomain solves the issue purely with routing.
The Local System Setting I have customized Server.js With Code Which Works Temporarily, but does't seems to be a solution which can be used in production :
Server.js
...
if (pathname === "/demo.demo.com") {
app.render(req, res, "/demo.demo.com", query);
}
...
And in _app.js
static async getInitialProps(appArgument) {
...
return {
...
renderFrom: "demo.demo.com"
};
}
Also in my host I have demo.demo.com point to localhost.
The site works for me in demo.demo.com:3000 but how to generalise it in production scenarios
with Database and CNAME Records and add/change CNAME Record automatically with User Action.
On Vercel (the creators of Next.js), we support Wildcard Domains out of the box. Within Next.js, you then only need to read the Domain from the headers of the incoming request, parse it and then respond with the right content.
I hope that was helpful!
I just found this blog post https://demo.vercel.pub/platforms-starter-kit, which was published 6 days ago.
It announces https://platformize.co/, a product that does just that.
Multi-tenant applications serve multiple customers across different subdomains/custom domains with a single unified codebase.
For example, this blog is a multi-tenant application:
Subdomain: demo.vercel.pub
Custom domain: platformize.co (maps to demo.vercel.pub)
Build your own: app.vercel.pub
Another example is Hashnode, a popular blogging platform. Each writer has their own unique .hashnode.dev subdomain for their blog:
eda.hashnode.dev
katycodesstuff.hashnode.dev
pit.hashnode.dev
Users can also map custom domains to their .hashnode.dev subdomain:
catalins.tech → pit.hashnode.dev

captive.apple.com/generate_204 hits from Windows 10

We have a several Windows 10 workstation - 6 out of 20 - constantly hitting the url "captive.apple.com/generate_204" over wired internet. Its not causing any issues but we don't understand why its happening and we want to turn it off.
Our FW logs give us this info which may be pertinent:
udp:6514
pan:threat
action allowed
app web-browsing
app:default_ports tcp/80
app:has_known_vulnerability yes
app:risk 4
app:subcategory internet-utility
app:technology browser-based
app:tunnels_other_application yes
app:used_by_malware yes
application web-browsing
category computer-and-internet-info
content_type text/html
dest 17.253.63.202
dest_hostname captive.apple.com
dest_interface ethernet1/4
dest_ip 17.253.63.202
dest_port 80
dest_zone dsl
direction client-to-server
filename generate_204
flags 0x42b000
misc captive.apple.com/generate_204
protocol tcp
rule User Internet Access - App
signature URL Filtering log(9999)
signature_id 9999
src_interface ethernet1/5.6
src_port 56363
src_translated_ip 192.168.50.1
src_translated_port 8089
threat_id 9999
threat_name -9999
type THREAT
url captive.apple.com/generate_204
user_agent Mozilla / 4.0
Solved.. The GlobalProtect client for VPN access was hitting this "URL" to test for connectivity. I found out by eliminating what services were active on startup and it was the second one I tried.
Now we can eliminate this call-out as it is a trusted app that's doing it with no payload anyhow.
So it wasn't a browser but an embedded agent within the client

FIDO U2F on a site with changing hostnames/IP addresses

I have a situation, where I want to implement FIDO U2F (using YubiKey) on an administrative interface to a load balancer, so that after login, in order to administer the system - U2F must be used as an extra layer of authentication.
Over the life span of the system - it’s common for the IP address and the hostname used to access it to change (e.g. once it’s https://192.168.0.20/, then it’s https://lb-admin.company.com/, then it’s something else, etc.).
The problem is that a key is being registered against an appId (the URL of the site) and then the appId is encoded in the keyHandle. Is there a way to allow multiple appIds or even remove the appId restriction when you register a key?
In other words - register one YubiKey and then use it from any entry point of the web site or even if the website is accessed using an IP address or a domain that is different from that, with which the key was initially registered?
Yes you can make a registered U2F key work with different hostnames buy using several subdomains... so it can be lb-admin.company.com and lb-login.company.com and whatever.company.com and so on. (Don't use IP)
In order to do so, your AppId reference should point to a online json file that will be processed as a TrustedFacetList.
Real world example... Here is the offcial GitHub AppID implementing this:
https://github.com/u2f/trusted_facets
All details and rules are described here:
FIDO AppID and Facet Specification (FacetID)
https://fidoalliance.org/specs/fido-u2f-v1.0-ps-20141009/fido-appid-and-facets-ps-20141009.html

Why was I told that xxx in the web address xxx.yyy.com is not a subdomain?

edit: more to the address than I had given in the example. It has a subfolder?? https://some_external_website.com/bh/public
Is it correct to say that xxx is a subdomain of yyy.com written as xxx.yyy.com
email I sent to the BIG IT dept: names changed to protect the innocent
Additional Info:Please create an entry that will map the subdomain xxx.yyy.com to https://some_external_website.com/bh/public
this is an externally hosted web application. Please call me if you have any questions.
--end of message--
About an hour later I get a call because they don't know what I want, I was told that xxx is not a subdomain. The correct definition subdomain it would have to be xxx.www.yyy.com.
The first component of a "domain name" is always the hostname. We can view a domain name as consisting of a hostname followed by one or more domain components. Each domain component is a subdomain of the component to it's immediate right. In xxx.yyy.zzz, xxx is the hostname (typically of a single machine, unless some kind of load balancing is going on), and yyy is a sub-domain of the zzz top-level domain. Colloquially we usually refer to zzz as the top-level domian, yyy as "the domain", and all other names to the left (excluding leftmost which is the hostname) as sub-domains. I'll add the disclaimer that I am by no means a DNS expert but to the best of my knowledge this would be why they aren't understanding your question. The hostname is not a "domain" per-se, i.e. it defines a single machine rather than a group (domain) of machines.