A
A
Ayk722017-08-30 21:20:01
Apache HTTP Server
Ayk72, 2017-08-30 21:20:01

Why doesn't the server start?

Hello!
I decided to protect the admin panel file, for this I made a shoot only by IP, specifying in httpd.conf:

<VirtualHost IP:81 >
        ServerName site.ru
        ...
<Files "admin.php">
 Order deny,allow
 Deny from all
 Allow from 127.0.0.1
 Allow from МОЙ_IP
</Files>
</VirtualHost>

But I can’t log in, here are the Apache logs:
[Wed Aug 30 21:15:35 2017] [error] [client МОЙ_IP] client denied by server configuration: /.../admin.php

Why? IP entered 100% correct, checked a hundred times.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
denverkurt, 2017-08-30
@denverkurt

try like this:
Allow from 127.0.0.1 МОЙ_IP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question