Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a little Debian Server which runs Apache 2.2.22. I have configured, with WebMin, a Apache Webserver that listens on the port 83. Now, in the root directory of this Webserver I configured the Access Control with a password, and everything works fine. The thing that I seem unable to fully accomplish is to create a "whitelist" on my local network.

Now my config file looks like this:

AuthType Basic
AuthName "Must Login"
AuthBasicProvider file
AuthUserFile /root/apache/password
require user root
allow from 192.168.1.0/255.255.255.0
allow from myname.dyndns.org
order allow,deny
Satisfy any

This works like a charm when accessing the server directly from its local address (192.168.1.9). But if I, still connected to my local network, try to access it by typing in the address bar "myname.dyndns.org", it asks me the password.

In the log file I found that when I try to connect directly typing the local address it logs

[Fri Aug 29 23:22:44 2014] [debug] mod_deflate.c(700): [client 192.168.1.2] Zlib: Compressed 1880 to 527 : URL /

but when I connect using myname.dyndns.org it logs

[Fri Aug 29 23:20:14 2014] [debug] mod_deflate.c(700): [client 66.249.81.21] Zlib: Compressed 484 to 326 : URL /

How can I accomplish this and why the client from the second log line isn't my client local IP?

Thanks in advance for your responses, Mauro.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.