How to display a default page from a Linux server when the client requests for a perticular site
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   shubham_sharma
Posted On:   Wednesday, June 5, 2002 12:25 AM

System Configuration:Linux Redahat6.0 server,64MB RAM
Software:JDK 1.3
Client:Win/Linux OS,Browser .

My question is that my client is trying to connect to the internet through the Linux server which has a squid proxy running on it.as soon as the client types anything in the browser he should not get connected to the internet directly.Instead the serever should throw a default page to the client.How can we achieve this?

Re: How to display a default page from a Linux server when the client requests for a perticular site

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, June 5, 2002 06:48 AM

Configure squid to chain proxy servers for the URL domains you don't like, and have another server just return your default page, as the target of the proxy chain.



That is, for URL's in domain 'foo.bar', tell squid to chain to proxy server 'baz.boo:XXX', and have the 'baz.boo' hostname point to a server, maybe even the same physical box as the squid proxy, where a minimal HTTP server listens on port XXX, and responds with your default page.

About | Sitemap | Contact