apache2.2 tomcat5.5.27 Windows 2008 virtual hosts
Dear all, This is the first time I have to set up a web application (Struts 1.1) and I have been hung up with this problem for days. I have searched and read every how to and other forum, mail list, blog I could find and I am probably misunderstanding something very obvious and simple. I have a Windows server 2008. An Apache2.2 httpserver is listening on port 8080. The application is deployed as a docbase on Tomcat 5.5.27. The Apache httpserver is running as a service. Everything worked before but after reinstalling the httpserver everything went wrong. When I go to http://retour.mycompany.com/ I get: http status 404 - / message / descripion The requested resource (/) is not available. I add my configuration here and hope somebody can easily point out what I missed or misunderstood. => Apache: httpd.conf: ServerRoot "C:/Program Files (x86)/Apache Software Foundation/Apache2.2" # # Listen: Allows you to bind Apache to specific IP addresses and/or # ports, instead of the default. See also the # directive. # # Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses. # #Listen 12.34.56.78:80 Listen 8080 # # Dynamic Shared Object (DSO) Support # # To be able to use the functionality of a module which was built as a DSO you # have to place corresponding `LoadModule' lines at this location so the # directives contained in it are actually available _before_ they are used. # Statically compiled modules (those listed by `httpd -l') do not need # to be loaded here. # # Example: # LoadModule foo_module modules/mod_foo.so # LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so LoadModule asis_module modules/mod_asis.so LoadModule auth_basic_module modules/mod_auth_basic.so #LoadModule auth_digest_module modules/mod_auth_digest.so #LoadModule authn_alias_module modules/mod_authn_alias.so #LoadModule authn_anon_module modules/mod_authn_anon.so #LoadModule authn_dbd_module modules/mod_authn_dbd.so #LoadModule authn_dbm_module modules/mod_authn_dbm.so LoadModule authn_default_module modules/mod_authn_default.so LoadModule authn_file_module modules/mod_authn_file.so #LoadModule authnz_ldap_module modules/mod_authnz_ldap.so #LoadModule authz_dbm_module modules/mod_authz_dbm.so LoadModule authz_default_module modules/mod_authz_default.so LoadModule authz_groupfile_module modules/mod_authz_groupfile.so LoadModule authz_host_module modules/mod_authz_host.so #LoadModule authz_owner_module modules/mod_authz_owner.so LoadModule authz_user_module modules/mod_authz_user.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cache_module modules/mod_cache.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule charset_lite_module modules/mod_charset_lite.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so #LoadModule dav_lock_module modules/mod_dav_lock.so #LoadModule dbd_module modules/mod_dbd.so #LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so #LoadModule disk_cache_module modules/mod_disk_cache.so #LoadModule dumpio_module modules/mod_dumpio.so LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule ext_filter_module modules/mod_ext_filter.so #LoadModule file_cache_module modules/mod_file_cache.so #LoadModule filter_module modules/mod_filter.so #LoadModule headers_module modules/mod_headers.so #LoadModule ident_module modules/mod_ident.so #LoadModule imagemap_module modules/mod_imagemap.so LoadModule include_module modules/mod_include.so #LoadModule info_module modules/mod_info.so LoadModule isapi_module modules/mod_isapi.so #LoadModule ldap_module modules/mod_ldap.so #LoadModule logio_module modules/mod_logio.so LoadModule log_config_module modules/mod_log_config.so #LoadModule log_forensic_module modules/mod_log_forensic.so #LoadModule mem_cache_module modules/mod_mem_cache.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule negotiation_module modules/mod_negotiation.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_ajp_module modules/mod_proxy_ajp.so #LoadModule proxy_balancer_module modules/mod_proxy_balancer.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so #LoadModule ssl_module modules/mod_ssl.so #LoadModule status_module modules/mod_status.so #LoadModule substitute_module modules/mod_substitute.so #LoadModule unique_id_module modules/mod_unique_id.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule vers
Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts
Hi André, Thank you so much for the quick response. I will check your feedback as soon as I have access to the server again. The reason for the Apache http server is because I thought I need it to handle the virtual hosting. As for the port 80, something else is already using it on the server. First I will try to have Tomcat listen on 8081 and see where that gets me. Then I will try without the Apache http server.(though my predecessor must have had a reason to use it) In the mean time kind regards, Piet On Sun, Aug 16, 2009 at 2:57 PM, André Warnier wrote: > Piet, > > Thanks for providing all the information needed to help you. > Not everyone does, and it's a p. in the a. > > But your configuration is a bit strange. > Actually, it cannot work the way it is described, because you have both > Apache httpd AND Apache Tomcat (2 different processes) trying to "listen" on > the same port (8080). Something is wrong, and either one or the other > should have trouble starting up (the first one to start will, the second one > cannot). > > The you say that you use the URL > http://retour.mycompany.com/ > > That would assume that something is listening on port 80. > But according to your configuration below, nothing is. > Apache httpd is listening on port 8080. That's the > Listen 8080 > directive in httpd.conf (or apache2.conf) > Tomcat is also listening on port 8080, according to the line > in Tomcat's "server.xml" file. > > The third thing that is a bit strange, is that you have both Apache httpd > and Tomcat set up, but actually your configuration is such that Apache httpd > forwards everything to Tomcat. Like > ProxyPass / http://192.168.210.143:8081/ > > So then, why even bother with Apache httpd ? > What happens if you just turn off the Apache httpd service, and try > the URL : > > http://retour.mycompany.com:8080/ > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts
Thank you for the feedback. Sorry for the incomplete information. The Apache http server is functioning as a reverse proxy. Multiple applications have to be accessed through the internet. Now, I have Tomcat listening on 8081. Going to retour.mycompany.com:8080 or retour.mycompany.com:8081 gives a network timeout. (The server at retour.mycompany.com is taking too long to respond.) On the other hand, when I use the ip address like http://192.168.210.143:8080/ I get the resource (/) not found error while http://192.168.210.143:8081/ gives a network timeout. Tomcat without the Apache http server service gives the same network timeout when accessed through 8081. Hope this gives a clearer picture. Kind regards. Piet On Sun, Aug 16, 2009 at 9:02 PM, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: java piet [mailto:javap...@gmail.com] > > Subject: Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts > > > > The reason for the Apache http server is because I thought I > > need it to handle the virtual hosting. > > No, Tomcat can handle that quite well: > http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html > > > As for the port 80, something else is already using it on the server. > > You may be able to use a different IP address and have Tomcat use port 80 > with that. > > > First I will try to have Tomcat listen on 8081 and see where > > that gets me. > > Your first step should really be to eliminate httpd; it will make things > much simpler. > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts
Sorry David, The addresses and names are fakes for reasons of confidentiality. The addresses and names in my code have worked before though. Kind regards, Piet On Mon, Aug 17, 2009 at 2:42 PM, David Smith wrote: > Are you replacing DNS names and IPs with fakes for the purposes of email > or are these real values? 192.168.x.x is unroutable and suggests the > time out is because your firewall or cable router aren't passing through > the requests from clients. > > --David > > java piet wrote: > > Thank you for the feedback. > > > > Sorry for the incomplete information. > > The Apache http server is functioning as a reverse proxy. > > Multiple applications have to be accessed through the internet. > > > > Now, I have Tomcat listening on 8081. > > > > Going to retour.mycompany.com:8080 or retour.mycompany.com:8081 > > gives a network timeout. (The server at retour.mycompany.com is taking > too > > long to respond.) > > > > On the other hand, when I use the ip address like > > http://192.168.210.143:8080/ > > I get the resource (/) not found error > > while http://192.168.210.143:8081/ gives a network timeout. > > > > Tomcat without the Apache http server service gives the same network > timeout > > when accessed through 8081. > > > > Hope this gives a clearer picture. > > > > Kind regards. > > > > Piet > > > > > > On Sun, Aug 16, 2009 at 9:02 PM, Caldarale, Charles R < > > chuck.caldar...@unisys.com> wrote: > > > > > >>> From: java piet [mailto:javap...@gmail.com] > >>> Subject: Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts > >>> > >>> The reason for the Apache http server is because I thought I > >>> need it to handle the virtual hosting. > >>> > >> No, Tomcat can handle that quite well: > >> http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html > >> > >> > >>> As for the port 80, something else is already using it on the server. > >>> > >> You may be able to use a different IP address and have Tomcat use port > 80 > >> with that. > >> > >> > >>> First I will try to have Tomcat listen on 8081 and see where > >>> that gets me. > >>> > >> Your first step should really be to eliminate httpd; it will make things > >> much simpler. > >> > >> - Chuck > >> > >> > >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > >> MATERIAL and is thus for use only by the intended recipient. If you > received > >> this in error, please contact the sender and delete the e-mail and its > >> attachments from all computers. > >> > >> > >> > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts
Hi David, You can find the server.xml close to the bottom of my first post. I get very little logging. The only trace is a failure of a GET(/) in one of the logs. I will check with the system administrator if anything was changed related to DNS. The Apache server definitely works. I will try Tomcat locally as soon as I have access to the server again. Kind regards, Piet On Mon, Aug 17, 2009 at 5:39 PM, David Smith wrote: > Hmmm ... maybe retour.mycompany.com isn't resolving to the IP you think > it is. Is there anything in your tomcat logs that might imply the > request is actually getting there? To me this smells a lot like a > network issue (DNS not resolving, firewall rules, etc., ...). Can you > verify tomcat works on the machine itself via a localhost request? I'd > also like to see what the server.xml file looks like. I don't think its > the issue, but it'd be nice to elliminate it entirely. > > --David > > java piet wrote: > > Sorry David, > > > > The addresses and names are fakes for reasons of confidentiality. > > The addresses and names in my code have worked before though. > > > > Kind regards, > > > > Piet > > > > On Mon, Aug 17, 2009 at 2:42 PM, David Smith wrote: > > > > > >> Are you replacing DNS names and IPs with fakes for the purposes of email > >> or are these real values? 192.168.x.x is unroutable and suggests the > >> time out is because your firewall or cable router aren't passing through > >> the requests from clients. > >> > >> --David > >> > >> java piet wrote: > >> > >>> Thank you for the feedback. > >>> > >>> Sorry for the incomplete information. > >>> The Apache http server is functioning as a reverse proxy. > >>> Multiple applications have to be accessed through the internet. > >>> > >>> Now, I have Tomcat listening on 8081. > >>> > >>> Going to retour.mycompany.com:8080 or retour.mycompany.com:8081 > >>> gives a network timeout. (The server at retour.mycompany.com is taking > >>> > >> too > >> > >>> long to respond.) > >>> > >>> On the other hand, when I use the ip address like > >>> http://192.168.210.143:8080/ > >>> I get the resource (/) not found error > >>> while http://192.168.210.143:8081/ gives a network timeout. > >>> > >>> Tomcat without the Apache http server service gives the same network > >>> > >> timeout > >> > >>> when accessed through 8081. > >>> > >>> Hope this gives a clearer picture. > >>> > >>> Kind regards. > >>> > >>> Piet > >>> > >>> > >>> On Sun, Aug 16, 2009 at 9:02 PM, Caldarale, Charles R < > >>> chuck.caldar...@unisys.com> wrote: > >>> > >>> > >>> > >>>>> From: java piet [mailto:javap...@gmail.com] > >>>>> Subject: Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts > >>>>> > >>>>> The reason for the Apache http server is because I thought I > >>>>> need it to handle the virtual hosting. > >>>>> > >>>>> > >>>> No, Tomcat can handle that quite well: > >>>> http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html > >>>> > >>>> > >>>> > >>>>> As for the port 80, something else is already using it on the server. > >>>>> > >>>>> > >>>> You may be able to use a different IP address and have Tomcat use port > >>>> > >> 80 > >> > >>>> with that. > >>>> > >>>> > >>>> > >>>>> First I will try to have Tomcat listen on 8081 and see where > >>>>> that gets me. > >>>>> > >>>>> > >>>> Your first step should really be to eliminate httpd; it will make > things > >>>> much simpler. > >>>> > >>>> - Chuck > >>>> > >>>> > >>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE > PROPRIETARY > >>>> MATERIAL and is thus for use only by the intended recipient. If you > >>>> > >> received > >> > >>>> this in error, please contact the sender and delete the e-mail and its > >>>> attachments from all computers. > >>>> > >>>> > >>>> > >>>> > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >
Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts
Hi, Just one last update. Nothing changed related to DNS or firewall rules. Tomcat does not work via localhost either. Kind regards and thank you all for the feedback. Piet On Mon, Aug 17, 2009 at 5:39 PM, David Smith wrote: > Hmmm ... maybe retour.mycompany.com isn't resolving to the IP you think > it is. Is there anything in your tomcat logs that might imply the > request is actually getting there? To me this smells a lot like a > network issue (DNS not resolving, firewall rules, etc., ...). Can you > verify tomcat works on the machine itself via a localhost request? I'd > also like to see what the server.xml file looks like. I don't think its > the issue, but it'd be nice to elliminate it entirely. > > --David > > java piet wrote: > > Sorry David, > > > > The addresses and names are fakes for reasons of confidentiality. > > The addresses and names in my code have worked before though. > > > > Kind regards, > > > > Piet > > > > On Mon, Aug 17, 2009 at 2:42 PM, David Smith wrote: > > > > > >> Are you replacing DNS names and IPs with fakes for the purposes of email > >> or are these real values? 192.168.x.x is unroutable and suggests the > >> time out is because your firewall or cable router aren't passing through > >> the requests from clients. > >> > >> --David > >> > >> java piet wrote: > >> > >>> Thank you for the feedback. > >>> > >>> Sorry for the incomplete information. > >>> The Apache http server is functioning as a reverse proxy. > >>> Multiple applications have to be accessed through the internet. > >>> > >>> Now, I have Tomcat listening on 8081. > >>> > >>> Going to retour.mycompany.com:8080 or retour.mycompany.com:8081 > >>> gives a network timeout. (The server at retour.mycompany.com is taking > >>> > >> too > >> > >>> long to respond.) > >>> > >>> On the other hand, when I use the ip address like > >>> http://192.168.210.143:8080/ > >>> I get the resource (/) not found error > >>> while http://192.168.210.143:8081/ gives a network timeout. > >>> > >>> Tomcat without the Apache http server service gives the same network > >>> > >> timeout > >> > >>> when accessed through 8081. > >>> > >>> Hope this gives a clearer picture. > >>> > >>> Kind regards. > >>> > >>> Piet > >>> > >>> > >>> On Sun, Aug 16, 2009 at 9:02 PM, Caldarale, Charles R < > >>> chuck.caldar...@unisys.com> wrote: > >>> > >>> > >>> > >>>>> From: java piet [mailto:javap...@gmail.com] > >>>>> Subject: Re: apache2.2 tomcat5.5.27 Windows 2008 virtual hosts > >>>>> > >>>>> The reason for the Apache http server is because I thought I > >>>>> need it to handle the virtual hosting. > >>>>> > >>>>> > >>>> No, Tomcat can handle that quite well: > >>>> http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html > >>>> > >>>> > >>>> > >>>>> As for the port 80, something else is already using it on the server. > >>>>> > >>>>> > >>>> You may be able to use a different IP address and have Tomcat use port > >>>> > >> 80 > >> > >>>> with that. > >>>> > >>>> > >>>> > >>>>> First I will try to have Tomcat listen on 8081 and see where > >>>>> that gets me. > >>>>> > >>>>> > >>>> Your first step should really be to eliminate httpd; it will make > things > >>>> much simpler. > >>>> > >>>> - Chuck > >>>> > >>>> > >>>> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE > PROPRIETARY > >>>> MATERIAL and is thus for use only by the intended recipient. If you > >>>> > >> received > >> > >>>> this in error, please contact the sender and delete the e-mail and its > >>>> attachments from all computers. > >>>> > >>>> > >>>> > >>>> > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >