0 votes
by Talented
So, would I be able to protect a subdomain of my main domain with httpauth, just like the wp-admin page ?

From the docs I understand (maybe wrongly) that it's possible with '-exact' ... however, I'm not able to get it to work, as it still asks me 'for a valid option' ...

Any ideas ?

1 Answer

0 votes
by Expert

Please, read the documentation before asking.

Use -path=/ to protect a complete site or domain.

It cannot be easier!

by Talented
I did read the documentation. Otherwise, I wouldn't even have known that this was possible. -path=/ is probably for the root domain. Either I am dumb, or the documentation is not clear.
Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

If you have a question about Webinoly, please ask in English or Spanish.

To report a bug, please ask a question here with the bug tag.


Webinoly Support Paypal Donations Webinoly Support Bitcoin Donations

Your regular donations is what keep this project moving forward. If you like Webinoly, buy me a coffee or a beer to show support.

Affiliate Links

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.