473,378 Members | 1,479 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

somebody help with virtual hosting plaese

Dear all,

I am newbee with virtual hosts, please help !

I am facing a problem with virtual hosting. I want to create virtual
host on my local system before creating it on server.

We have developped an applicacation on Tomcat 5.5.12 using java,
struts, spring and hibernate.
We are on a continous upgation, and we upgarate our site every
saturday. It will take approximately 1 hour. So, I want to display a
maintanance page during that upgration.

Is virtual hosting is the solution to this or is there any other
technology for this purpose ?

I have followed steps in tomcat site for creating virtual host.
http://tomcat.apache.org/tomcat-5.5-...ing-howto.html
After I edit my server.xml, I have created 2 folders in conf/Catalina/
with ROOT.xml and manager.xml inside them.
After restarting the tomcat, I am getting blank blank page when i am
accessing manager/html page.

Please help!

Thank you
Regards:
Sagri

May 11 '07 #1
2 1741
On 11 May, 10:53, Yash <qayy...@gmail.comwrote:
Dear all,

I am newbee with virtual hosts, please help !

I am facing a problem with virtual hosting. I want to create virtual
host on my local system before creating it on server.

We have developped an applicacation on Tomcat 5.5.12 using java,
struts, spring and hibernate.
We are on a continous upgation, and we upgarate our site every
saturday. It will take approximately 1 hour. So, I want to display a
maintanance page during that upgration.

Is virtual hosting is the solution to this or is there any other
technology for this purpose ?

I have followed steps in tomcat site for creating virtual host.http://tomcat.apache.org/tomcat-5.5-...ing-howto.html
After I edit my server.xml, I have created 2 folders in conf/Catalina/
with ROOT.xml and manager.xml inside them.
After restarting the tomcat, I am getting blank blank page when i am
accessing manager/html page.

Please help!

Thank you
Regards:
Sagri
this is really alt.apache.configuration
the answer is a time dependent rewrite for the duration of the update:
saturday between 1800 and 1900
(untested)

RewriteCond %{time_wday}%{TIME_HOUR}%{TIME_MIN} >61800
RewriteCond %{time_wday}%{TIME_HOUR}%{TIME_MIN} <61900
RewriteCond %{REQUEST_FILENAME} !back_in_one_hour.html$
ReWriteRule .* back_in_one_hour.html [L]

May 11 '07 #2
On May 11, 5:27 pm, shimmyshack <matt.fa...@gmail.comwrote:
On 11 May, 10:53, Yash <qayy...@gmail.comwrote:
Dear all,
I am newbee with virtual hosts, please help !
I am facing a problem with virtual hosting. I want to create virtual
host on my local system before creating it on server.
We have developped an applicacation on Tomcat 5.5.12 using java,
struts, spring and hibernate.
We are on a continous upgation, and we upgarate our site every
saturday. It will take approximately 1 hour. So, I want to display a
maintanance page during that upgration.
Is virtual hosting is the solution to this or is there any other
technology for this purpose ?
I have followed steps in tomcat site for creating virtual host.http://tomcat.apache.org/tomcat-5.5-...ing-howto.html
After I edit my server.xml, I have created 2 folders in conf/Catalina/
with ROOT.xml and manager.xml inside them.
After restarting the tomcat, I am getting blank blank page when i am
accessing manager/html page.
Please help!
Thank you
Regards:
Sagri

this is really alt.apache.configuration
the answer is a time dependent rewrite for the duration of the update:
saturday between 1800 and 1900
(untested)

RewriteCond %{time_wday}%{TIME_HOUR}%{TIME_MIN} >61800
RewriteCond %{time_wday}%{TIME_HOUR}%{TIME_MIN} <61900
RewriteCond %{REQUEST_FILENAME} !back_in_one_hour.html$
ReWriteRule .* back_in_one_hour.html [L]
Hi shimmyshack,
Thanks for your response.
I want to use this approach to test my application. But I do not know
which files to insert these lines in. Also I am not using apache
server, I am using apache tomcat 5.5.

Also, I found that while we are updating our application, the
application is not known to tomcat, untill it is completed. So tomcat
sends 503 page as resource not found. I want to know is virtual
hosting is the right way to deal with this issue.

Is it possible to customise the 503 page, so that, for any resource
not found issue, tomcat displays the customised page.
I am trying to set the page in tomcat directory itself. I have gone
through all xml files in tomcat directory, along with xml files in
other directories like conf etc. I did not find any setting for 503
pages. If you know how to set this page. please write me.
Is this solution is appropriate?

Thanks in advance
May 15 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: andy | last post by:
Hi, I'm trying to get mod_python working on my web server, but I'm running into problems, possibly due to having virtual hosts configured. I'm no apache guru (newbie is more accurate!) so I...
4
by: Mark Hoagland | last post by:
I've got a scenario with a web application where I must access the virtual directory being accessed from within the Application_OnStart event handler. Specifically, I have a series of IIS virtual...
3
by: Roy Yao | last post by:
Hello, I need to pass a pointer to a callback function to the lower level modules. But the function is thought to be a virtual member one. How can I get the real address of the virtual...
2
by: Dariusz | last post by:
I am trying out a fully CSS-P layout (first time with floats) and am having problems with getting certain DIV's from displaying properly - or rather - they are being completely ignored. Below is...
4
by: Jerry | last post by:
I'm having just a bit of trouble wrapping my brain around the task of working with folders that are above the site's root folder. I let users upload photos (.jpg/.gif files) which can...
1
by: Fabio Negri Cicotti [MCP] | last post by:
Hi, I have an application written in vb.net /sql server 2000. I am hosting a test site with a hosting company that offers shared ssl. They have created a directory for me and I have copied my...
0
by: greg | last post by:
Hi, I am hosting hundreds of websites on a webserver using a combination of sql and asp. SQL is on a different server. The web server is running win 2003 iis 6 with a single processor and 1 GB...
0
by: dba123 | last post by:
I'm trying to implement my own Virtual Path Provider class. http://msdn2.microsoft.com/en-us/library/system.web.hosting.virtualpathprovider.aspx ...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.