Im trying to host a index for my project logs on apache to be accessed from the internal network.
The website location is /srv/www/htdocs. I tried to put the allow ip in the .htaccess file there and it didn't work there.
I also tried putting it in the httpd.conf file httpd.conf
That did not work also. Im trying to only get one computer on a static IP to access it. The apache 2.4 is running on OpenSuse
# global (server-wide) SSL configuration, that is not specific to
# any virtual host
Include /etc/apache2/ssl-global.conf
# global (server-wide) protocol configuration, that is not specific
# to any virtual host
Include /etc/apache2/protocols.conf
# forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride ALL
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order deny,allow
Deny from all
</IfModule>
</Directory>
<Directory "/var/www/htdocs/">
Options Indexes FollowSymLinks
AllowOverride None
REquire all denied
Require ip 192.168.30.54
</Directory>
# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
<IfModule !mod_access_compat.c>
Require all denied
</IfModule>
<IfModule mod_access_compat.c>
Order allow,deny
Deny from all
</IfModule>
</Files>
v:78.0) Gecko/20100101 Firefox/78.0"
192.168.30.13 - - [26/Feb/2021:00:23:54 -0500] "GET / HTTP/1.1" 200 2257 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.30.13 - - [26/Feb/2021:00:23:54 -0500] "GET /favicon.ico HTTP/1.1" 404 985 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0"
192.168.30.13 - - [26/Feb/2021:00:34:13 -0500] "GET / HTTP/1.1" 304 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0