Score:0

Limiting website access on main domain while allowing full access on subdomain?

cn flag

I have a main domain and a subdomain on the main domain with different IPs pointed to the same instance of Nginx on my Ubuntu 20.04 VPS using UFW as a firewall.

admin.mydomain.com -> 10.10.10.20
mydomain.com -> 10.10.10.10

While I would like to limit mydomain.com to a broad range of IPs, I would like to limit admin.mydomain.com to a few. This is a Drupal install, so I would like to also block certain URL paths (/user/login, /admin/*, etc.) from access on mydomain.com but full access to admin.mydomain.com

How would I go about doing this? I understand that this might take a combination of Nginx and UFW configurations.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.