Hi all,
I'm trying to set up an Apache server (version 2.2.16 (Ubuntu)).
This is only the second time I've done it, so I'm taking baby steps. I'm planning on having my homepage visible only within the LAN (192.168.0), and a few other authenticated pages accessible from the www, via a no-ip type url.
I'm falling at the first hurdle; I can't get ip-based authentication to work. This is a snippet from my
sites-available/default:
Code:
3 DocumentRoot "/srv/www"
4
5 <Directory "/srv/www/">
6 Options Indexes FollowSymLinks MultiViews
7 AllowOverride None
8 Order deny,allow
9 Deny from all
10 Allow from 192.168.0
11 </Directory>
My interpretation of the Apache docs is that this should allow access from all machines within the 192.168.0 network, but it doesn't allow any access. All I get is:
Code:
Forbidden
You don't have permission to access /
on this server.
If I remove lines 8-10, it works fine, but doesn't restrict the access as I would like.
What am I doing wrong?
Thanks in advance,
Charlie