473,657 Members | 2,776 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1774
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.conf iguration
the answer is a time dependent rewrite for the duration of the update:
saturday between 1800 and 1900
(untested)

RewriteCond %{time_wday}%{T IME_HOUR}%{TIME _MIN} >61800
RewriteCond %{time_wday}%{T IME_HOUR}%{TIME _MIN} <61900
RewriteCond %{REQUEST_FILEN AME} !back_in_one_ho ur.html$
ReWriteRule .* back_in_one_hou r.html [L]

May 11 '07 #2
On May 11, 5:27 pm, shimmyshack <matt.fa...@gma il.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.conf iguration
the answer is a time dependent rewrite for the duration of the update:
saturday between 1800 and 1900
(untested)

RewriteCond %{time_wday}%{T IME_HOUR}%{TIME _MIN} >61800
RewriteCond %{time_wday}%{T IME_HOUR}%{TIME _MIN} <61900
RewriteCond %{REQUEST_FILEN AME} !back_in_one_ho ur.html$
ReWriteRule .* back_in_one_hou r.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
2039
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 could easily be doing something wrong. The apache configuration is further complicated by having an include file for each virtual host, so the config isn't actually *in* the main apache conf file!
4
3711
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 directories which all point to the same set of ASP pages. However, since each virtual directory is a separate 'application', each has its own set data which must be cached. To detect which data must be cached for each virtual directory, I need to...
3
12092
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 member function?
2
2302
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 a copy of the code I have written. It is arranged as follows: Header Left Middle Right Footer The "Left" and "Right" DIV's are fixed width and the "Middle" DIV takes the
4
7565
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 subsequently be viewed on the site's pages. My hosting provider is requiring that any files my Web app writes get written to a folder that is above the app's root folder (for security purposes). When writing the files I understand how to use MapPath to...
1
1109
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 pages into this directory. Until this point everything worked just fine, however, since moving the pages to the ssl directory I get the following message Parser Error Message: Could not load type 'WebApplication1.Login'.
0
1601
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 Ram. All websites are in 1 app pool. I find that i get out of memory errors or no new sessions are created when the virtual bytes for an App pool starts to breach over 1500mb. So i recycle the App pool at a limit of 1500mb.
0
1302
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 http://support.microsoft.com/?scid=kb;en-us;910441&spid=8940&sid=513 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/vpp_vga.asp However, I'm not going to be using an external store such as a DB, etc. because we are only going to be watching for 3 unique URLs. ...
113
5255
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 the Python world, you're fine. But once you do, things go downhill. MySQLdb has version and platform compatibility problems. So does M2Crypto. The built-in SSL support is weak. Even basic sockets don't quite work right; the socket module...
0
8403
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8316
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8833
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8509
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5636
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4327
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2735
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1730
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.