LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-29-2010, 04:48 PM   #1
sanketpatel.86
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
Apache redirection


Hi,

We are using a webserver and application server for our portal.
When my JBoss application is down on the application server, a maintenance page is shown to the user when the user tries to access the portal. When the JBoss application on the application server is up, the webserver redirects the request to the JBoss application server.
Now, while the JBoss application is up and I replace the contents of index.html page in apache with the maintenance page contents, still the webserver redirects the request to the JBoss application server and the contents of index.html are not shown to the user.
I am not able to find out any configurations for this automatic redirection in webserver. By automatic, I mean if the JBoss application is up, then redirect the request to the application server, else show maintenance page. Can anyone please help me on this?

What I want to do is show maintenance page even when my JBoss application is up.

Thanks in advance,
Sanket
 
Old 09-29-2010, 05:14 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

I guess apache runs as a reverse proxy for the backend application server.
Check for a .htaccess in apache DocumentRoot (or through the various *.conf files) for proxy and rewrite directives.
If you want apache to stop proxying and display its index page as a maintenance page, just comment out these directives. Don't forget to do a backup of the file(s) you editing.

Regards
 
Old 02-25-2013, 02:50 AM   #3
here4jboss
LQ Newbie
 
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by bathory View Post
Hi,

I guess apache runs as a reverse proxy for the backend application server.
Check for a .htaccess in apache DocumentRoot (or through the various *.conf files) for proxy and rewrite directives.
If you want apache to stop proxying and display its index page as a maintenance page, just comment out these directives. Don't forget to do a backup of the file(s) you editing.

Regards
hi bathory,
please help me to setup a maintainance redirection pages when jboss app server is down.
When my JBoss application is down on the application server, a maintenance page shud be shown . how to start . how do i do it . i know nothing of it .please help.
 
Old 02-25-2013, 04:23 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by here4jboss View Post
hi bathory,
please help me to setup a maintainance redirection pages when jboss app server is down.
When my JBoss application is down on the application server, a maintenance page shud be shown . how to start . how do i do it . i know nothing of it .please help.
Please do not hijack others threads.
You should start your own thread describing your problem, what you've done so far to solve it and some useful data like distro, config file(s), logs etc.
In the meantime have a look at this post to help you going.

Regards
 
  


Reply



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
redirection in apache ice99 Linux - Networking 3 07-17-2006 12:24 PM
Redirection in Apache gonzo22 Linux - Networking 5 02-12-2005 09:54 AM
Apache redirection question... WeNdeL Linux - Software 2 04-01-2004 10:48 AM
Apache - Redirection problem... elitecodex Linux - Software 5 03-29-2004 10:12 PM
apache redirection failing acid_kewpie Linux - Networking 2 08-15-2002 04:29 PM

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

All times are GMT -5. The time now is 03:18 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