Re: CUPS



On Tue, 2007-08-21 at 21:03 -0500, mark wrote:

<Location /admin>
#
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.0.0/255.255.255.0

#Encryption Required

I missed the first part of this thread, but if this is the CUPS web gui
served by Apache, try:

<Location /admin>

order deny,allow
deny from all
allow from 192.168.0.

</Location>

AFAIK, Apache doesn't use network/subnet mask style syntax. You'll also
need to restart apache via something like "apachectl graceful" or
"service httpd restart".

BTW - The Apache documentation states you should use <Directory> rather
than <Location> to secure website access. From the Apache 2.0.x
documentation:

"It is important to never use <Location> when trying to restrict access
to objects in the filesystem. This is because many different webspace
locations (URLs) could map to the same filesystem location, allowing
your restrictions to be circumvented."

See the following document, particularly the "What to use When" section
(recently learned this myself):
http://httpd.apache.org/docs/2.0/sections.html

-Eric

--
Eric Sisler <esisler@xxxxxxxxxxxxxxxxxxxxx>
Library Network Specialist
Westminster Public Library
Westminster, CO USA

Linux - Don't fear the Penguin.
Want to know what we use Linux for?
Visit http://wallace.westminster.lib.co.us/linux

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: Nimda + apache
    ... I think you'll find that the bit at the bottom of your apache .conf file was ... your Tomcat webapps directory. ... > AllowOverride None ... > deny from all ...
    (NT-Bugtraq)
  • BUG IN APACHE HTTPD SERVER (current version 2.0.47)
    ... How to return files in a Apache Deny All directory. ... Apache Web Server allows manage configurations via the main ... the configuration comparing between two config ...
    (Bugtraq)
  • Re: BUG IN APACHE HTTPD SERVER (current version 2.0.47)
    ... >How to return files in a Apache Deny All directory. ... The server administrator further ... the configuration comparing between two config ...
    (Bugtraq)
  • Re: Apache issue
    ... > upgrading to a new version of Apache (I configured only the new httpd.conf ... I'm bypassing all of them (.htaccess and ip list specification). ... Deny as default from all, ...
    (Focus-Linux)
  • Re: Share a printer?
    ... It's a configurationfile similar to apache. ... Deny From All ... ajust the allow from to your network ...
    (comp.os.linux.misc)