Virtual Host + Apache httpd server + Tomcat + mod_jk connector

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • In my last post (Virtual Host in Tomcat) we discussed about how setup the virtual host in Tomcat. Its cost effective technique because only one public IP is enough to host multiple domain. If we have big organization and each department want to host their website in locally in different machine. then how to achieve the virtual host concept?. In this post we will see the how we do this.
    Vistit : www.ramkitech.c...
    Subscribe
    www.youtube.com...
    Website
    www.ramkitech.com
    Ramki on Twitter
    / ramkicse

Комментарии • 162

  • @naveen5281
    @naveen5281 Год назад

    Trust me , your video helped me on 2017 to clear my interview on oracle and now again i'm referring your video to brush up my basics ... Thanks @rama - wonderful work ..

  • @tonyg_nerd
    @tonyg_nerd 5 лет назад +3

    @Rama - You did this video over 7 years ago. I watch a lot of tech videos and rarely comment to the publishers. I sincerely Thank You for this high quality video that is explicit, concise, accurate, and on-point. I have a client that had their system setup at about the same time. They used exactly the configurations you've described here all the way through to domain mapping to specific Tomcat contexts. You've provided a roadmap that now allows me to connect all of the dots, and make changes in this environment to respond to new requests. Well done!

  • @HXYZZZ
    @HXYZZZ 7 лет назад +8

    awesome. verified many tutorials and none of them had provided detailed insight into these concepts at one place. great walk-through of each and every step involved. made completely easy to understand whole setup. Great work.

  • @manjitpandeybth
    @manjitpandeybth 7 лет назад +1

    Best Explanation I found about Tomcat and Apache

  • @LKWPETER
    @LKWPETER 12 лет назад

    Thanks Rama! I searched all the web for this fine tutorial! And finally I found your video. Great Work!!!

  • @lokeshpandey2360
    @lokeshpandey2360 9 лет назад +2

    Best Explanation till date i found to clear concept for same.Awesome tutorials...:-)

  • @davidbecerramontellano7598
    @davidbecerramontellano7598 4 года назад +1

    Thank you RamaKrishnan, this video is complete. I was able to configure my server. Regards.

  • @mayurdighe
    @mayurdighe 5 лет назад +2

    Really thank you.
    Solved my issue which I have been trying from past week

  • @rxv73
    @rxv73 9 лет назад

    Thank you for helping make this clear for me and taking the time for making the video. Much appreciated!

  • @thiruc7828
    @thiruc7828 8 лет назад

    Awesome tutorial , and I like all series of yours on Tomcat, Appreciate it, Keep doing man.

  • @anthonygomez5492
    @anthonygomez5492 9 лет назад

    Hi Rama,
    Thank you very much for sharing this kind of knowledge, this is very helpful just like me that starting to learn on this, very appreciate it.

  • @yenugantimadhu2942
    @yenugantimadhu2942 7 лет назад +2

    Thanks Ram. It is very helpful video for biginners

  • @issuesingh6633
    @issuesingh6633 10 месяцев назад

    Very informative ,nice explanation 👍

  • @chytrak4060
    @chytrak4060 5 лет назад

    Do you know , how to loadbalance a URL that has, a context say /foo/abc somewhere in it(not exactly after domain name) ? jkmount does not permit to use ^/foo/abc/* , do we have to use location handler ?

  • @kunalchavan7889
    @kunalchavan7889 6 лет назад

    How to configure mod_JK for both http and https for multiple tomcats? What changes to be done in workers.properties and tomcat?

  • @lablilly1301
    @lablilly1301 6 лет назад

    Awesome tutorial sir! Such a detailed class !! Superb

  • @jeffersonfranciscojr.2386
    @jeffersonfranciscojr.2386 11 лет назад

    Sir thank you this tutorial. I just want to know If what will happen if the application is using a session and the instance of tomcat was stopped? Will it pass the session to other instance of tomcat?

  • @jms007pf
    @jms007pf 10 лет назад

    Ramki..Its awesome information...many many thank you..

  • @PIYUSH-lz1zq
    @PIYUSH-lz1zq Год назад

    Can u explain me a little bit about virtual host and jkmount ??

  • @muhammedwaiz1595
    @muhammedwaiz1595 5 лет назад

    I did exactly what you have shown.After successfully executing --configure No folder is generated in /usr/local.Please help

  • @davidbecerramontellano7598
    @davidbecerramontellano7598 4 года назад

    Dude, How can I to add SSL Certification to this configuration with mod_jk connector and tomcat?... Regards.

  • @rajalingam7670
    @rajalingam7670 11 лет назад

    Many Thanks Rama...your Guide very much helpful for me

  • @gokulvijayakumar1315
    @gokulvijayakumar1315 9 лет назад

    Very nice tutorial, I have one doubt why we configuring all the tomcat to Apache server, why cant we use three tomcat server itself for this three different domain. somehow we need three tomcat server for three departments then they can directly contact tomcat itself rite, what the use of configure to Apache server.

    • @RamakrishnnanEP
      @RamakrishnnanEP  9 лет назад

      Gokul V Yes u can used it. In that case we need 3 public IP address, Its expensive, If its open to public.
      In our case one IP and unlimited tomcat can handle the sites

    • @gokulvijayakumar1315
      @gokulvijayakumar1315 9 лет назад

      Thanks Ramki :)

    • @RamakrishnnanEP
      @RamakrishnnanEP  9 лет назад

      ;-)

  • @chiragkawatra3970
    @chiragkawatra3970 6 лет назад

    Hi Rama,
    I need to run tomcat in other machine while Apache in other, can we connect that too?

  • @karthikkumar2361
    @karthikkumar2361 10 лет назад +1

    is it possiable to install the above setup on CentOS release 6.4 (Final) , please suggest asap ..........thank you

  • @sidhshetye30
    @sidhshetye30 10 лет назад

    dude..... u are the best..... thank you so much for this awesome video...... helped me alot.....

  • @anthonygomez5492
    @anthonygomez5492 9 лет назад

    Hi Ramki,
    Do you have any video about configuration of apache web server run in multiple instances on the same server, i have 1 working web server, but when i have created another 1 one, im getting isssue, actually my goal here is created 2 web server run and more instances and configure it as a load balancer.
    Appreciate it if you have any video with regarding on this one
    Thanks

  • @thebluegreen
    @thebluegreen 4 года назад

    Tomcat ajp port is not secure in 8.5. But if someone still wants to use AJP along with apche httpd how do we make is secure ?

  • @Kumar-du2pr
    @Kumar-du2pr 7 лет назад +2

    Excellent explanation. Your Champ. Thank you

  • @ShyantanDeb1
    @ShyantanDeb1 7 лет назад

    I have installed but the problem i am facing that one of my site is having ssl and another is not. So, should i Install the ssl on Apache or on Tomcat??
    Please help me out

  • @tulsiram9669
    @tulsiram9669 10 лет назад

    hi rama
    thank you for sharing your knowledge with us . Can i use this virtual host concept for communicating between web logic server and apache httpd server

    • @RamakrishnnanEP
      @RamakrishnnanEP  10 лет назад

      yes u can use it, find which port ajp task running on weblogic server

    • @tulsiram9669
      @tulsiram9669 10 лет назад

      Thank you for reply
      Do i need apache-web logic server plug-in?

    • @tulsiram9669
      @tulsiram9669 10 лет назад

      I am using oracle Vm box

    • @RamakrishnnanEP
      @RamakrishnnanEP  10 лет назад

      if plugin are ther then use it it can reduce our job

    • @tulsiram9669
      @tulsiram9669 10 лет назад

      I cannot find on which port number ajp is running . Actually iam using oracle vm box i need to make bridge between web logic server and httpd
      could you please help me out
      thank you

  • @ericktorrero8712
    @ericktorrero8712 5 лет назад

    Very clear
    Although I have a question, which server's resources will consume on each request?
    The main server
    Or one of the sub servers?

  • @ashish3683
    @ashish3683 6 лет назад

    thanku bro but how to configure for https if we load for https it ask certificate twice instead of one when we request it ask first for apache and second time for tomcat

  • @ericktorrero8712
    @ericktorrero8712 5 лет назад

    Thank you so much, it helped me a lot . but I'm facing a problem, my webapp shows on the url the original webapp name, and without it doesn't work my app, can you help me? can I shared my config with you?

  • @VennilaGunasekaran
    @VennilaGunasekaran 10 лет назад

    All part you said was very right and I have a doubt. I am already running my tomcat server with my applications. Now, How I Can proceed to this stage. In which port I need to install my Apache? I got struck. Can you help me please?

    • @RamakrishnnanEP
      @RamakrishnnanEP  10 лет назад

      Vennila Gunasekaran which port ur tomcat is running? 80? or 8080
      If is 8080 then install apache in port 80. suppose ur tomcat is running on 80 then stop tomcat change the port 8080 and then install apache on 80

    • @VennilaGunasekaran
      @VennilaGunasekaran 10 лет назад

      Rama krishnnan EP
      Thank you.
      How to use Server Side Includes with this set up.

    • @VennilaGunasekaran
      @VennilaGunasekaran 10 лет назад

      Should I change AJP and Shutdown port numbers while installing Tomcat? I mean, Should both Apache and Tomcat have different Http,Ajp and Shutdown Port numbers?
      Please Reply me.

    • @RamakrishnnanEP
      @RamakrishnnanEP  10 лет назад +1

      yes, http ports should different, tomcat use ajp port, which that port is put in config file of apache

    • @VennilaGunasekaran
      @VennilaGunasekaran 10 лет назад

      I am getting classNotFound Exception. What to do?
      Mar 14, 2015 11:02:18 AM org.apache.catalina.startup.Catalina load
      WARNING: Catalina.start using conf/server.xml: Error at (35, 42) : org.apache.jk.config.ApacheConfig
      Mar 14, 2015 11:02:18 AM org.apache.tomcat.util.digester.Digester startElement
      SEVERE: Begin event threw exception
      java.lang.ClassNotFoundException: org.apache.jk.config.ApacheConfig
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at org.apache.tomcat.util.digester.ObjectCreateRule.begin(ObjectCreateRule.java:144)
      at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1276)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1537)
      at org.apache.catalina.startup.Catalina.load(Catalina.java:601)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:663)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:450)
      Mar 14, 2015 11:02:18 AM org.apache.catalina.startup.Catalina load
      WARNING: Catalina.start using conf/server.xml: Error at (35, 42) : org.apache.jk.config.ApacheConfig
      Mar 14, 2015 11:02:18 AM org.apache.catalina.startup.Catalina start
      SEVERE: Cannot start server. Server instance is not configured.

  • @SaiKrishna-up4kw
    @SaiKrishna-up4kw 7 лет назад

    why to create department folder??
    is that an application?? specified

  • @pragatisingh4863
    @pragatisingh4863 4 года назад

    @Rama, Thank you so much this video helped me a lot though I am facing an issue for me localhost:8080/test-1/ is working but localhost:80/test-1/ is giving me error "The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later." Can you please help me with this?

  • @Purplehaze778
    @Purplehaze778 8 лет назад

    wow, simple and practical example. Thank you.

  • @shettyss7477
    @shettyss7477 7 лет назад +1

    Thank you so much, it's so nice, Ramki.

  • @ftwtf1
    @ftwtf1 11 лет назад

    I get the following error:
    httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
    (98) Address already in use: make_sock: could not bind to address [::]:80
    (98) Address already in use: make_sock: could not bind to address 0.0.0.0:80
    no listening sockets available, shutting down
    Unable to open logs.
    This happens when I try to execute the command ./apachectl start.
    Any thoughts on how to solve this? I really need this pls. Thanks!

    • @RamakrishnnanEP
      @RamakrishnnanEP  11 лет назад

      Some services already running on port 80.
      so do
      netstat -tlpn
      u can see which process running on port 80, may another apache service. either shut down another process or change our apache into some other port like 8080 in conf/httpd.conf file then start the server

  • @polesetti
    @polesetti 9 лет назад +2

    very useful info, excellent effort, thanks

  • @bdaboah
    @bdaboah 6 лет назад

    Your video is very interesting and helpful. thanks

  • @nagendrapeethani8778
    @nagendrapeethani8778 6 лет назад

    hi...Rama krishnan nice tutorial. could u please make video with apache2 instead of httpd ,i did not get any resources regarding redirection of tomcat on apache 2 server on debian 8 linux

  • @cpandit803
    @cpandit803 12 лет назад

    Sir, I have my web application deployed with netbeans now how should I configure that using apache Tomcat? should i just copy the build folder next to webapps? or i have to do something else? please if possible then make a video on configuring the entire project into apache tomcat and virtual hosting it
    The entire web is filled with crap, if we search for anything related to Tomcat or JAVA J2EE except your channel and koushiks one once again thank you :)

  • @joy9135
    @joy9135 7 лет назад

    Thanks for the video, can u pls suggest how to pass Tomcat server path in workers.properties file...

  • @RamakrishnnanEP
    @RamakrishnnanEP  11 лет назад

    Hello Amit,
    so what kind of error u got?

  • @Deepak726verma
    @Deepak726verma 10 лет назад

    thank u..very much very useful information...love it...

  • @OddBallTrails
    @OddBallTrails 6 лет назад

    Hi this video is very nice and the jk_mod is working for my 3 tier architecture very well. Now, the thing I wanted to know is about mod_proxy.so module, can you make a video on this module to connect to the 2nd tier app server (tomcat). Thanks in advance.

  • @Bhuv-
    @Bhuv- 8 лет назад +1

    Hi Rama,
    Incase i want to enable certificate for security purpose? will AJP be supportive of that?

    • @RamakrishnnanEP
      @RamakrishnnanEP  8 лет назад +1

      u can put certificate in Apache httpd server. and make tomcat is non-ssl model.

  • @phegde8668
    @phegde8668 6 лет назад

    hi Bro I cant see mod_jk.so file, is this something I have to create. Thank you for help in advance

  • @sudinranjitkar5726
    @sudinranjitkar5726 7 лет назад

    How to perform all these on windows platform... In need of guidance

  • @prostpr1741
    @prostpr1741 11 лет назад

    Rama ...thanks...very informative...

  • @mosabhashim3378
    @mosabhashim3378 6 лет назад

    Mr.Roma i run the command "./configure --prefix=/usr/local/apache --enable-rewrite=shared --enable-proxy=shared" then i checked the apache directory i found it empty .. i run it again and again still the apache directory is empty .. please help .. thank you

    • @mosabhashim3378
      @mosabhashim3378 6 лет назад

      any one can help !!

    • @RamakrishnnanEP
      @RamakrishnnanEP  6 лет назад +1

      after that u need to execute make and make install commands
      ./configure just check the system satisfied all requirements only, make only compile the code, make install, install final step

  • @venkatasubbaraokoniki86
    @venkatasubbaraokoniki86 7 лет назад

    Plz provide the updated tutorials about clustering and configure s

  • @VinuezaDario
    @VinuezaDario 5 лет назад

    This configuration no found, for httpd-2.4.41on centos7

  • @SuperAaditya08
    @SuperAaditya08 10 лет назад

    nice work!! I am new to servers and linux and learning a ot from you.. i have a query... if any one can help please..
    In apache access logs if i have to count number of access attempts made to my server within a timestamp say from 12:15:00 to 12:50:00 on a perticular day ,,then how will i do so??? 

  • @bvijay1981
    @bvijay1981 7 лет назад

    can upload the same using redhat 7

  • @BhanuPratap88
    @BhanuPratap88 8 лет назад +2

    thanks Rama Great presentation.

  • @projectvv0836
    @projectvv0836 7 лет назад +1

    It is very helpful ! thanks.

  • @bbi5405
    @bbi5405 8 лет назад

    Very good tutorial, thank you very much!

  • @chytrak4060
    @chytrak4060 5 лет назад +1

    Clear explanation

  • @prempanwar6980
    @prempanwar6980 12 лет назад

    thank you so much man,gr8 job.loving it...!!!

  • @mohitamgaonkarmv
    @mohitamgaonkarmv 8 лет назад

    I have one VPS hosting, and now I want to deploy both Java web application and PHP website. How can I do that?

    • @RamakrishnnanEP
      @RamakrishnnanEP  8 лет назад

      install both tomcat and php. run tomcat in different port. Apache httpd server on port 80. then apply reverese proxy concept to redirect only java request to tomcat.

  • @infomahboobali
    @infomahboobali 7 лет назад +2

    nice tutorial Rama

  • @illusionist50
    @illusionist50 10 лет назад

    thank you very much, really informative.

  • @peterjamesvuti2251
    @peterjamesvuti2251 6 лет назад

    Awesome, thank you Rama

  • @renatibhanukoteshwarreddy2198
    @renatibhanukoteshwarreddy2198 3 года назад

    xml/apr_xml.c:35:10: fatal error: expat.h: No such file or directory
    #include
    above is the error coming while using make.

  • @baylink12
    @baylink12 12 лет назад

    its very intutive. thanks a lot.

  • @RamakrishnnanEP
    @RamakrishnnanEP  12 лет назад

    U can create the war file through netbeans/eclipse. otherwise u can put folder

  • @akaghzi
    @akaghzi 10 лет назад +1

    you are a life saver

    • @baldevmatlani2832
      @baldevmatlani2832 10 лет назад

      May God Almighty gives you a bundle of happiness in coming year!

  • @marimuthum5961
    @marimuthum5961 6 лет назад

    How to do the same in Windows Server?

  • @spgarde
    @spgarde 10 лет назад

    Great tutorial

  • @salhaoddinmohd8509
    @salhaoddinmohd8509 11 лет назад

    Great Job..Thanks alot

  • @poonamkale7522
    @poonamkale7522 5 лет назад

    Hey
    I have my web server on xxx.xx.15.46 And application server on xxx.xx.2.249
    I have installed WAMP on web server and IDE Eclipse Java 1.8 and Apache Tomcat 8.5 on application server. Both server has Windows server R2 2012.
    I am unable to establish connection between different IP Server.
    Please help me with this
    Thanking in advance

  • @RamakrishnnanEP
    @RamakrishnnanEP  12 лет назад

    thanks, using screen recording software

  • @bgiindia6740
    @bgiindia6740 5 лет назад

    Thanks nice video very helpful , how to make http to https redirection

  • @satyam70
    @satyam70 8 лет назад +2

    very very nice ..thanks

  • @anupash4549
    @anupash4549 9 лет назад +1

    Excellent..

  • @RamakrishnnanEP
    @RamakrishnnanEP  12 лет назад

    Thanks Prem

  • @srikanthreddy6700
    @srikanthreddy6700 7 лет назад

    hi ldap for apache httpd sever

  • @Techwithgk369
    @Techwithgk369 5 лет назад

    Super boss

  • @135pwnage
    @135pwnage 12 лет назад

    thanks!

  • @RamakrishnnanEP
    @RamakrishnnanEP  12 лет назад

    thanks

  • @RamakrishnnanEP
    @RamakrishnnanEP  11 лет назад

    Thanks Salhaoddin :-)

  • @srikanthreddy6700
    @srikanthreddy6700 7 лет назад

    make command not working

  • @RamakrishnnanEP
    @RamakrishnnanEP  12 лет назад

    Thanks :-)

  • @kosterix123
    @kosterix123 5 лет назад

    typical indian video. Lots of typing without any top-down approach. You should first state explicitly the goal you want to achieve.
    So you start with a picture like 12:13, then prove 3 tomcats and 3 apaches work, something like 8:53 - 9:15
    Then the rest of the video makes more sense than your far too vague introduction. Introductions should sharply define the goal, you're vlogging to tech guys, not management.

    • @tonyg_nerd
      @tonyg_nerd 5 лет назад

      @Kosteri x - I agree that he did not intro the big picture at the start but the detail he provided was explicit, concise, accurate, and on-point. That's minus one cookie for form but one hundred cookies for excellent content. Cut him some slack - as a technician, get over it. This was a truly awesome vid compared to a lot of the crap that we see.

  • @yosefshmaya6933
    @yosefshmaya6933 4 года назад

    sory, cant understand a single word. trying hard - with max volume, anddddd subtitles run. like you run with talking. 18 sec. and its really unwatchable

    • @yosefshmaya6933
      @yosefshmaya6933 4 года назад

      really want to watch your video, but it is not possible!!!! talk slower, louder, and dont run with the words. ur indian accent is very strong, u should know it, and slowwwwww it down, have u watched it? understand any thing??? 27 min, and you dident notice it? its sad i can not enjoy your wisdom

  • @jeanrodrigues6249
    @jeanrodrigues6249 3 года назад

    Floppy

  • @jeffersonfranciscojr.2386
    @jeffersonfranciscojr.2386 11 лет назад

    Sir thank you this tutorial. I just want to know If what will happen if the application is using a session and the instance of tomcat was stopped? Will it pass the session to other instance of tomcat?

    • @RamakrishnnanEP
      @RamakrishnnanEP  11 лет назад

      when session created its pass to all other instances. when one instance is stoped then it never send anything. all other instance come to know this instance dead by heartbeat signals.

    • @jeffersonfranciscojr.2386
      @jeffersonfranciscojr.2386 11 лет назад

      OK man I will try this. Is it possible also to put instance of tomcat and the load balancer to different machine?

    • @RamakrishnnanEP
      @RamakrishnnanEP  11 лет назад

      Yes u can use Apache httpd webserver or Nginx or HAProxy as load balancer

    • @jeffersonfranciscojr.2386
      @jeffersonfranciscojr.2386 11 лет назад

      OK thank you...

  • @arjun230190
    @arjun230190 5 лет назад

    It's very helpful. Thanks.

  • @punitverma5356
    @punitverma5356 7 лет назад

    thanks

  • @jeanrodrigues6249
    @jeanrodrigues6249 3 года назад

    Floppy

  • @jeanrodrigues6249
    @jeanrodrigues6249 3 года назад

    Floppy

  • @jeanrodrigues6249
    @jeanrodrigues6249 3 года назад

    Floppy