I want allow access to
/htdocs/reserved/ directory only for ip addresses from 192.168.1.193 to 192.168.1.254 (.193 --> .254).
I have written this code in
<Directory /htdocs/reserved/> Order Deny, Allow Deny from all Allow from 192.168.1.193/254 </Directory>
After stop, Apache won't restarts and raises this exception:
The Apache service named reported the following error: The specified network mask is invalid.
the problem seem the mask
I have also tried:
<Directory /htdocs/reserved/> Order Deny, Allow Deny from all Allow from 192.168.1.193 192.168.1.254 </Directory>
it works! apache start, but i'm not sure if all ip addresses in the range are allowed to access to directory or only 192.168.1.193 and 192.168.1.254 are allowed.
The official docs lacks of clear information (or i'm too stupid to understand it).
The question is: what is the right way for allow a ip address range to access in a directory?
side note: i have used private range only for example.
Thanks at all and sorry for my english.