• Apache Allow/Deny and dynamc DNS- Hosts?

    From mark@teknogeekz.com@21:1/5 to All on Wed Sep 21 10:25:41 2016
    As it seems , Apache will not allow you to put a dynamic hostname in allow/deny rules as it preforms reverse lookups thereby resolving my ip to my ISPs hostname. It will not resolve the Dynamic hostname to my IP

    Does Apache httpd use the hosts file when it comes to allow/deny rules?

    Here is what I want to achieve

    A cron that resolves dynamic hostnames and writes them into the hosts file.

    so every 3 hours this cron will lookup
    my.dyndns.com
    myother.dyndns.com

    These would be the ONLY IPS able to access this Apache server.

    So instead of messing with rewriting in allow/deny and restarting apache, it seems easier to write them in hosts file for an immediate change with no restarts. I also would then also not be afraid of the script buggering the httpd.conf file as would be
    the case if I write the corresponding IPs to the httpd.conf file.

    So if these dynamic hostnames are written into the hosts file arent the changes immediate with no restart and will apache use them for allow/deny rules?

    Mark

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)