LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-07-2013, 03:22 PM   #1
fandar
Member
 
Registered: Oct 2006
Posts: 61

Rep: Reputation: 15
show html page when connection is unavailable


Hello,

on my linux router I need to show custom offline html page when Internet connection is unavailable. What is the best way howto do it? I would like to also use some simple proxy server like tinyproxy.

Thank you in advance for your suggestions.
 
Old 01-07-2013, 03:29 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by fandar View Post
Hello,
on my linux router I need to show custom offline html page when Internet connection is unavailable. What is the best way howto do it?
No idea, since you don't tell us anything about your router.
Quote:
I would like to also use some simple proxy server like tinyproxy.
Ok...so install tinyproxy. We can help with errors and problems, but just saying what you'd LIKE to do isn't either. Tinyproxy has a lot of tutorials and documentation you can easily find.
 
Old 01-08-2013, 02:29 AM   #3
fandar
Member
 
Registered: Oct 2006
Posts: 61

Original Poster
Rep: Reputation: 15
The router is a standard Linux PC with two ethernet cards.

I have tiny proxy installed already. The question is if some options allows to show the offline html page when internet connections is unavailable?

Thank You
 
Old 01-08-2013, 09:22 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by fandar View Post
The router is a standard Linux PC with two ethernet cards.
...which says nothing about how you have it configured to BE a router. What software are you using? And you do know the difference between a router and a proxy server, right?
Quote:
I have tiny proxy installed already. The question is if some options allows to show the offline html page when internet connections is unavailable?
If you already have tinyproxy installed, why ask about it? If you want your own web page to be returned when a page can't be found, read the man page for tinyproxy.conf:
http://linux.die.net/man/5/tinyproxy.conf

...pay particular attention to the ErrorFile directive. Example:
http://blog.macrowen.com/m/?post=69
 
  


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
html : force the fonts size for whole html page? Xeratul Programming 6 11-27-2012 11:54 AM
My Gmail page is unavailable: can't check my mail! lupusarcanus Linux - Software 3 05-05-2010 01:46 AM
Get notified in Linux C program as Internet connection becomes available/unavailable jimcftsai Linux - Software 10 09-02-2009 10:13 PM
How do I output information from a PHP page to an HTML page? SentralOrigin Programming 3 01-10-2009 01:54 AM
Dedicated server problem - HTML page doesn't show anymore prasepretep Linux - Server 1 02-14-2008 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:51 AM.

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