A
A
Alexey Nikolaev2015-02-04 13:07:50
PHP
Alexey Nikolaev, 2015-02-04 13:07:50

How to disable authorization in .htaccess for server only?

Hello!
There is a closed server, with protection through .htaccess (AuthType Basic, etc.). Everything works, but some cms \ plugins for them, as well as external solutions, apparently stumble upon the authentication requirement and give all sorts of errors.
Is it possible somehow to allow access to the server itself (i.e., for example, if a script located on the same secure host opens any address via fopen)?
I would be grateful for advice, thanks.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
FanatPHP, 2015-02-04
@Heian

Satisfy any

I
Igor, 2015-02-04
@merryjane

Write allowing rules for the local loop of the server and its external address, if it suddenly goes to itself through it:

Allow from 127.0.0.1
Allow from server_ip

You need to insert this after the line with Order, for example:
Here is a little more detail on this issue:
book.majordomo.ru/page/39

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question