Quantcast

Serve the same page always!

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Serve the same page always!

Odhiambo WASHINGTON

Perhaps this a FAQ, but...how do I configure squid to serve the same
page regardless of the incoming URL.


-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <[hidden email]>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+

It is Mr. Mellon's credo that $200,000,000 can do no wrong.  Our
offense consists in doubting it.
                -- Justice Robert H. Jackson

smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serve the same page always!

Chris Robertson-2
Odhiambo WASHINGTON wrote:
> Perhaps this a FAQ, but...how do I configure squid to serve the same
> page regardless of the incoming URL.
>  

I'd use deny_info and the appropriate ACLs.

acl all src 0.0.0.0
deny_info http://my.server/page_to_display.ext all
http_access deny all

>
> -Wash
>  

Chris
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serve the same page always!

Amos Jeffries
Administrator
In reply to this post by Odhiambo WASHINGTON
Odhiambo WASHINGTON wrote:
> Perhaps this a FAQ, but...how do I configure squid to serve the same
> page regardless of the incoming URL.
>
>
> -Wash

acl all src 0.0.0.0/0
deny_info <page-URI> all
http_access deny all


Amos
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serve the same page always!

Henrik Nordström
In reply to this post by Odhiambo WASHINGTON
tis 2007-05-15 klockan 17:00 +0300 skrev Odhiambo WASHINGTON:
> Perhaps this a FAQ, but...how do I configure squid to serve the same
> page regardless of the incoming URL.

Please be a bit more specific. HTTP does not have pages.. (just
objects..).

0) Is this a forward proxy for LAN -> Internet access, or a reverse
proxy for Internet -> Your web server?

a) Do you want Squid to ignore the hostname component of received URLs
and always return the same site?

b) Do you want to redirect the user to a specific page unless the URL is
for that server?

c) As 'b' but without a redirect just rewriting the requested URL on the
fly. Requires the redirection page to use absolute URLs as the browser
is unaware the URL has been changed under it's feets.

Regards
Henrik

signature.asc (316 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Serve the same page always!

Odhiambo WASHINGTON
* On 16/05/07 14:28 +0200, Henrik Nordstrom wrote:
| tis 2007-05-15 klockan 17:00 +0300 skrev Odhiambo WASHINGTON:
| > Perhaps this a FAQ, but...how do I configure squid to serve the same
| > page regardless of the incoming URL.
|
| Please be a bit more specific. HTTP does not have pages.. (just
| objects..).

Sure, I was a bit vague. I am sorry.


| 0) Is this a forward proxy for LAN -> Internet access, or a reverse
| proxy for Internet -> Your web server?

This is a forward proxy for LAN -> Internet.

I want to serve only three urls, both hosted
on the Squid box itself:

http://webmail.domain.name
https://webmail.domain.name
http://manager.domain.name

All other requests for pages on the Internet will be redirected to
one of the  webmail.domain.name.

| a) Do you want Squid to ignore the hostname component of received URLs
| and always return the same site?


Yes. Kind of, but please refer to (0) above.

| b) Do you want to redirect the user to a specific page unless the URL is
| for that server?

No.


| c) As 'b' but without a redirect just rewriting the requested URL on the
| fly. Requires the redirection page to use absolute URLs as the browser
| is unaware the URL has been changed under it's feets.

Not sure if this applies to my need :-)

Thanks in advance


-Wash

http://www.netmeister.org/news/learn2quote.html

DISCLAIMER: See http://www.wananchi.com/bms/terms.php

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <[hidden email]>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+

"I don't have any solution but I certainly admire the problem."
                -- Ashleigh Brilliant
Loading...