?
Solved

Apache beginner question

Posted on 2009-12-16
10
Medium Priority
?
292 Views
Last Modified: 2012-05-08
Hi all,

I am beginner in Apache and hv some doubts in Apache.

Currently, i have one existing application that is accessible from www.something.com then it redirects to IIS. The IIS would then redirect to a single instance of Tomcat. I am thinking to replace the IIS with Apache so I can load balance many instances of Tomcat.

Hence, what i think is that www.something.com will point to my Apache and Apache will redirect to Tomcat. I have been able to cluster and redirect to Tomcat from Apache using mod_jk.

Very important, the reason why i want to load balance Tomcat because i was told that this website cannot be unavailable. It must run 24/7.

My questions.
1. If www.something.com has already redirected to port 80 (IIS), must I configure anything else for my Apache? I knew that Apache will ask me the domain, email and etc in its installation. Do I need to provide them in installation?
2. I am currently creating the maintenance page if there are big deployments in my J2EE app. I understand that this can be achieved using .htaccess file. Once I changed the .htaccess, must I restart Apache? If so, when Apache is down due to restart, my www.something.com will not be available and this is not acceptable.

Thanks and appreciate for the replies.
David
0
Comment
Question by:suprapto45
  • 7
  • 3
10 Comments
 
LVL 15

Expert Comment

by:Insoftservice
ID: 26069416
hi,

In httpd.conf of apache wherever you see 80 convert it to 81

NameVirtualHost *:81

<VirtualHost *:81>
      ServerName www.phpmyadmin.com
      DocumentRoot D:/xampp/phpMyAdmin
</VirtualHost>
0
 
LVL 15

Accepted Solution

by:
Insoftservice earned 500 total points
ID: 26069430
hi,
No you dont have to restart your apache for .htaccess but you have to restart for httpd.conf

http://www.electrictoolbox.com/article/apache/restart-apache/
0
 
LVL 16

Author Comment

by:suprapto45
ID: 26069449
Hi insoftservice,

Thanks.

>>"No you dont have to restart your apache for .htaccess but you have to restart for httpd.conf"
Perfect, this will then be a very good solution for activate/deactivate the maintenance page.

>>"In httpd.conf of apache wherever you see 80 convert it to 81"
I am sorry but I do not get you on this. Does it mean that it will listen to port 81 instead? But my current domain will listen to port 80.

Thanks
David
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 15

Expert Comment

by:Insoftservice
ID: 26069470
hi ,
If ur using windows

http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc

httpd.exe -k restart
similar to linux gracefull command
0
 
LVL 15

Expert Comment

by:Insoftservice
ID: 26069478
hi,

Ya , but on port 80 you have IIS right?
So apache will get hinder. if you are using only apache then you have to do nothing.
Just paste the above code at bottom of your httpd.conf and change all it 81 to 80 thats it

http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc
0
 
LVL 16

Author Comment

by:suprapto45
ID: 26069507
Hi,

Thanks. I am using Windows Server 2003.

>>"Ya , but on port 80 you have IIS right?"
I am planning to shutdown IIS and replace it with Apache :) so I guess that I should do nothing and just install Apache and remove IIS.

One last question.
On the first page of Apache installation, it asks for domain, email and etc. Do I need to provide them? If so, what purpose do they serve?

Thanks
David
0
 
LVL 15

Assisted Solution

by:Insoftservice
Insoftservice earned 500 total points
ID: 26069582
hi,

It will just save in httpd.conf and php.ini. that even if skip you can insert it . Manually nothing else.
But providing might resolve you mail issue if it arises. its upto you you want manually or via setup its your choice.

http://www.ricocheting.com/server/apache.html

http://www.thesitewizard.com/apache/install-apache-2-windows.shtml

This one has VIDEO TUTS for installation of APACHE on WINDOWS

http://video.google.com/videosearch?hl=en&q=apache+installation+video+guide+on+windows&um=1&ie=UTF-8&ei=hNkpS9WOGcifjAflj8GSBw&sa=X&oi=video_result_group&ct=title&resnum=4&ved=0CBYQqwQwAw#
0
 
LVL 15

Expert Comment

by:Insoftservice
ID: 26069726
Hi suprapto45,

Did it help you or not.
0
 
LVL 15

Expert Comment

by:Insoftservice
ID: 26070036
HI,

May i now where You got stuck. while the installation of apache and mysql. SO that i can help you
0
 
LVL 16

Author Comment

by:suprapto45
ID: 26070107
Hi insoftservice,

Sorry, i was away for the meeting.

>>"May i now where You got stuck. while the installation of apache and mysql. SO that i can help you"
Nah, i have installed everything perfectly.

thx
David
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question