LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-05-2007, 11:22 AM   #1
grymuz
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Rep: Reputation: 0
Squid and "www" prefix


Hello

At first, I tried Google and searched this forums.
I haven't found the answer though so I'm asking you.

I'm used to Firefox which has a cool feature that
when you type the url http://something.com and there should
be 'www' it redirects you to http://www.something.com.

I'm using squid for some time now, and I would like to implememt
such feature in squid.

For example if the url resolving fails squid would try with the "www" at
the beginning.

I have installed jesred but I'm not sure what kind of
regex rule should I use to achieve this. Mainly how to configure jesred to put
the "www" prefix between http:// and the rest of the hostname.

Thanks in advance.
 
Old 07-05-2007, 12:08 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this is none of squid's business, it has no role to play in redirection or url manipulation whatsoever. it's not tht it's not able to yet or anything, it's just totally nothign to do with what squid does.
 
Old 07-05-2007, 05:45 PM   #3
grymuz
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
What is the way to achieve this?

Thanks for the reply,
in that case maybe someone knows the way to
achieve that kind of functionality?

Thanks
 
Old 07-06-2007, 01:36 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i can't see that anything other than a web cliebt / browser has any reason to ever do that at all. doesn't make sense to me.
 
Old 07-06-2007, 03:40 AM   #5
grymuz
LQ Newbie
 
Registered: Jul 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Well

I thought about it and I don't see any problem in rewriting any url
without "www" at the beginning to the url with "www".

Let's leave that.

Let's consider web client approach.
Normally Browser gets 404 error, however squid sends it's
own message (at least looks different). Maybe if it was configured to send the errors intact it would work?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
New SQUID user: How to clear the "access.log" and "store.log" automatically? yuzuohong Linux - Networking 2 12-02-2006 05:37 AM
Why prefix shell script with "./" ? seeDubya Linux - Newbie 5 08-29-2005 01:53 AM
Where is the Embedded Linux "HOWTO" at http://www.tldp.org ? t3gah General 14 06-06-2005 06:35 AM
I can't "service squid start" , and chkconfig squid on not working Niceman2005 Linux - Software 0 11-10-2004 08:18 PM
MySQL setup stops at command "./configure --prefix=/usr/local/mysql" k41184 Linux - Software 1 05-20-2004 02:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration