Answer the question
In order to leave comments, you need to log in
How to configure Apache2 to authorize from a request?
On the home server, you need to make authorization directly from the request. The request looks like this:
https : //[email protected]/index.php/
You are about to log in to the site "192.168.1.2" with the username "userabrakadabra", but the website does not require authentication. This may be an attempt to trick you.
Is "192.168.1.2" the site you want to visit?
AuthType Digest. And the browser stopped being interested in my adequacy. But after displaying the page of the transferred user, I can’t find it anywhere in any variables.
Answer the question
In order to leave comments, you need to log in
First, although it's a bit irrelevant to the question, I would recommend dropping Apache in favor of Nginx + PHP-FPM. Well, this is if you want a more optimal server.
Second, what you want is HTTP Authentication . It is you who will configure authentication using Apache tools (do not confuse authorization with it).
If you need to do it in a script, then check out the official documentation .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question