nginx – redirect (nat?) by subdomain to docker

I managed this for HTTP requests with nginx but there you have to specify every port you want to use. I would like to redirect all the ports and protocols at once. Technically mapping the IP of the docker to the subdomain.

HTTP(S) includes a host name in the header, to explicitly allow virtual hosting of this kind.

Other protocols, however, don’t.

NAT and port forwarding happens on TCP/IP or UDP packets, which does not contain any information about domains. The domain name is resolved by the client system, which then will use the IP it resolves to in the packets to address them.

So no, you can’t do what you want to do, unless your protocol supports a hostname field, or you have multiple IP’s – one per subdomain.

seo – Limit Google site links to just my subdomain when currently they include other sites that don’t belong to me from the same domain

I’ve been struggling to find some information about sitelinks that Google generates when I search for the webapp I’m working on.
enter image description here

As you can see in the image, I’m working on this website vitrine.globo.com, which is a subdomain of globo.com. The problem is that it generates these sitelinks that have nothing to do with the page.

It’s a simple Angular application and I’ve added all required meta tags and information for SEO, but none of them seems to be related with sitelinks.

Is there a way to do this? A few links i’ve found says that this behaviour is automated, so it means we can’t have any control about it?

virtualhost – How to map my subdomain blog.xyz.me to xyz.me/wordpress?

I have purchased a domain at GoDaddy.com. Let us call it xyz.me.

I have installed wordpress on my Synology.

I have used the DDNS service provided by noip.com. The hostname is set to xyz.ddns.net. Further I have configured the DDNS in External Access on synology.

Now, when I type xyz.me into my browser, it brings me to the homepage of webstation running on my Synology.

On my Synology webstation I have configured a virtual host with the hostname of blog.xyz.me pointing to web/wordpress folder but when I type blog.xyz.me into the address bar, I can see the home page of the wordpress blog but none of the links work and the styling does not work.
I get an Internal Server Error when I click on a link.

What I want to do is type blog.xyz.me into the browser and that should bring me to xyz.me/wordpress.

How do I achieve this?

load balancing – domain CNAME to subdomain

Please help, I had a questing regarding DNS delegation and CNAME.
Is it possible to CNAME parent domain to subdomain example I had domain example.com and I want to CNAME it to sub.example.com.

The parent domain configuration like below:

Domain: example.co.id
Record:
@ IN NS ns1.example.co.id.
ns1 IN A IP_PUBLIC

www.example.co.id. IN CNAME www.sub.example.co.id.
example.co.id. IN CNAME sub.example.co.id.

$ORIGIN sub.example.co.id.
@ IN NS ns1.sub.example.co.id.
@ IN NS ns2.sub.example.co.id.
ns1.sub.example.co.id. IN A IP_ISP1
ns2.sub.example.co.id. IN A IP_ISP2

And subdomain configuration like this:

DNS:
Domain: sub.example.co.id
Record:
@ IN NS ns1.sub.example.co.id.
@ IN NS ns2.sub.example.co.id.
ns1 IN A IP_ISP1
ns2 IN A IP_ISP2

www.sub.example.co.id. IN A IP_ISP1
www.sub.example.co.id. IN A IP_ISP2
sub.example.co.id. IN A IP_ISP1
sub.example.co.id. IN A IP_ISP2

I had tried lab in on bind9 look like the bind9 confused or looped.

I had case previously we had record www.example.com CNAME to example.com and now we add sub domain and move all service from example.com to sub.example.com without remove original domain name.

Our previous DNS server on cloudflare and now we want CNAME and delegate all service to our load balancer as subdomain.

Thanks and sorry for bad my bad grammar.

WordPress permalink not working on subdomain

My WordPress permalink not working on subdomain etc :

In normally wordpress will redirect automatic like this :

www.sub1.mydomain.com/blog/?p=123 > www.sub1.mydomain.com/blog/post-title

but now my website still used plain :

www.sub1.mydomain.com/blog/?p=123 > www.sub1.mydomain.com/blog/?p=123

How can i fix it! Thank you.


My .htaccess

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /blog
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

plugins – I want visitors of subdomain to land on main domain’s homepage

The main domain naishtika.com has the theme called FtagEmentor which stopped supporting the plugin called sprouteinvoices
it started creating conflicts with the theme so I created a new subdomain accounts.naishtika.com and installed sproutinvoices in that subdomain
in subdomain i didn;t add anything else not even theme and any website content only this invoice plugin
it started working again, now when I generate any invoice it shows accounts.naishtika.com at the bottom of the invoice (in the footer section). And if user clicks there they reaches to the site which doesn’t have any content.
So, I just wanted visitors to land up on some meaningful content like homepage of naishtika.com after clicking accounts.naishtika.com in the footer.
when I copied all the files and database of naishtika.com to subdomain, i cannot use the plugin because again if I install that plugin here it creates conflict and stop working
and if I redirect accounts.naishtika.com to naishtika.com , link of the estimate page doesnt work as it also get redirected to naishtika.com and shows page not found. also i cannot login to accounts.naishtika.com wp admin because it takes me to naishtika.com’s wp admin login page .
please suggest what to do
i just want visitor who opens the invoice or estimate and click on the bottom URL accounts.naishtika.com to be landed somewhere meaningful and not on the unformated homepage as it is now.

.htaccess – How I can protect and hide a specific subdomain?

I have my main web (example.com) and my mail subdomain (mail.example.com), which is needed so I can send and receive emails.
I’d like to “hide” this subdomain to everyone (me included) as it doesn’t show anything, just “this web doesn’t have any SSL certificate” (even tho it should HAVE one, if someone knows why, let me know).

Also, I have my webmail access which is webmail.example.com, and just to have an extra layer of security, I’d like to make like a restricted area, so you can only access with certain thing, IP, code, I don’t know. If you need an example, check corp.google.com and see what it shows.

Thanks in advance!

seo – What to do in Google Search Console when moving a subdomain to its own domain

I found this post but I it doesn’t answer my question completely.
I have

  • https://de.example.com
  • https://es.example.com
  • and others

which I moved using 301 to

  • https://example.de
  • https://example.es

The redirects work perfectly.

Currently do exist in the Google Search Console the following sitemaps URL:

  • https://de.example.com/sitemap.xml
  • https://es.example.com/sitemap.xml

In the Search Console I already added/confirmed example.de, example.es, … as new properties.

How can I tell the Search Console that these subdomains have been permanently moved so the existing ranking doesn’t get lost?

seo – Search Console: What to do when changing from subdomain to TLD

I found this post but I it doesn’t answer my question completely.
I have

  • https://de.domain.com
  • https://es.domain.com
  • and others

which I moved using 301 to

  • https://domain.de
  • https://domain.es

The redirects work perfectly.

Currently do exist in the Google Search Console the following sitemaps URL:

  • https://de.domain.com/sitemap.xml
  • https://es.domain.com/sitemap.xml

In the Search Console I already added/confirmed domain.de, domain.es, … as new properties.

My questions:

  1. Should I keep the existing sitemaps for the subdomains [de.domain.com] or delete them?
  2. Is there a way to tell the Search Console that domain.de is the new de.domain.com or how to do it?
  3. It’s obvious I don’t want to lose the ranking for the subdomains and inherit them to the new TLDs.
  4. What do I have to consider, what do I have to do?
  5. Can I already submit the sitemap https://domain.de/sitemap.xml or should I wait?