l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
April 21: Google Glass
Next Installfest:
Latest News:
Mar. 18: Google Glass at LUGOD's April meeting
Page last updated:
2004 Mar 22 16:12

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] HOWTO: use your domain search path with omsoft's proxy.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] HOWTO: use your domain search path with omsoft's proxy.

I wanted to be able to set my domain search path to ucdavis.edu and
type http://my/ for my.ucdavis.edu or http://sisweb/ for
sisweb.ucdavis.edu, and Omsoft's proxy wouldn't let me. (I actually
wanted to just type "my", and my web browsers will add on the http://
stuff for me)

I installed Squid on my computer last night, becuase another piece of
software I wanted required it, and I was able to take advantage of it
to solve that problem.

I added to /etc/squid.conf
redirect_program /usr/local/bin/squidrewrite
redirect_rewrites_host_header on

and in /usr/local/bin/squidrewrite, I put:
#inspired by the Squid 1.1 release notes
while (<>) {
   s@http://([^./]*)/@http://\1.ucdavis.edu/@ unless /http...localhost/;

The result works decently well (This still won't handle things like
http://wwwcsif.cs/). Now I just have to set all my web
browsers to use that proxy.

I run all my own servers because I trust nobody.

On that note, does anybody know of a free replacement for nntpcache
that they've gotten to work? I tried newscache but couldn't make it

I usually have a GPG digital signature included as an attachment.
See http://www.gnupg.org/ for info about these digital signatures.
My key was last signed 10/14/2003. If you use GPG *please* see me about 
signing the key. ***** My computer can't give you viruses by email. ***

Attachment: signature.asc
Description: Digital signature

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Sunset Systems
Who graciously hosts our website & mailing lists!