All,
I have tomcat setup on our server to listen on port 80 which means that any HTTP request coming to the server tomcat handles. My question: is there are way to setup tomcat to redirect to my application login page. Basically right now the only way to get to the login page is to go to www.mypage.com/awareim/app/login.html. Is there are way to setup tomcat to redirect any call to port 80 on the server to this url? I would like anyone going to www.mypage.com to get the login page.
Everything I have found only says that this would be easy if running apache with tomcat but I could not find a solution if not running apache.
Tomcat deployment
Tomcat deployment
-Bryan
Version 8 (Build 2358)
Version 8 (Build 2358)
Sorry to do this but I need a way around this tomcat issue. -Bump-
Has anyone setup tomcat to handle all requests for a particular domain call. All I need is for tomcat to redirect calls from www.mypage.com to www.mypage.com/awareim/login.html
This is a simple action with the Apache & Tomcat combination but with the way the AwareIM is setup it seems this is complicated. I have googled the heck out of this topic with no solid solution.
Has anyone setup tomcat to handle all requests for a particular domain call. All I need is for tomcat to redirect calls from www.mypage.com to www.mypage.com/awareim/login.html
This is a simple action with the Apache & Tomcat combination but with the way the AwareIM is setup it seems this is complicated. I have googled the heck out of this topic with no solid solution.
-Bryan
Version 8 (Build 2358)
Version 8 (Build 2358)
Not a tomcat expert but would a simple http redirect statement on www.mypage.co home page do the trick?
There's a simple html tag which I understand is no longer recommended but works nevertheless
<meta HTTP-EQUIV="REFRESH" content="0;url=http://www/mypage.com/AwareIM/Logon etc etc">
Usually accompanied by something like "If this page does not redirect in 5 seconds click here "
There's a simple html tag which I understand is no longer recommended but works nevertheless
<meta HTTP-EQUIV="REFRESH" content="0;url=http://www/mypage.com/AwareIM/Logon etc etc">
Usually accompanied by something like "If this page does not redirect in 5 seconds click here "
I am still stuggling with this as I have a limited knowledge of how Tomcat works. For example could someone explain how to get tomcat to server up a page at all when monitoring just port 80 the standard HTTP port. If I can get that working I believe the redirect would not be a problem.
The issue I am facing is when I deploy the exe build of my business space to a server that has IIS running just for FTP access (the website is turned off) the server returns a 400 error when you just go to the www.mydomain.com site but if you go to www.mydomain.com/awareim/logon.html it work just fine.
Is there a way to have tomcat listen and respond to port 80?
Sorry for all the confusion I have spent all my time thus far in the IIS world. I miss the UI that IIS has.
The issue I am facing is when I deploy the exe build of my business space to a server that has IIS running just for FTP access (the website is turned off) the server returns a 400 error when you just go to the www.mydomain.com site but if you go to www.mydomain.com/awareim/logon.html it work just fine.
Is there a way to have tomcat listen and respond to port 80?
Sorry for all the confusion I have spent all my time thus far in the IIS world. I miss the UI that IIS has.
-Bryan
Version 8 (Build 2358)
Version 8 (Build 2358)
Hi, as i said I'm not a tomcat expert (same background as you but I've done a bit of digging and discoverd a file in C:\AwareIM\tomcat\conf\server.xml
There's a section in there that looks promising
" <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
Have you tried playing around with that?. Can't do it myself - I'm in a critical phase of testing as i'm sure the aware guys would quite like me to part with some cash in the near future.
Good Luck
There's a section in there that looks promising
" <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
Have you tried playing around with that?. Can't do it myself - I'm in a critical phase of testing as i'm sure the aware guys would quite like me to part with some cash in the near future.
Good Luck
Brian, Ignore last post. I DID get Tomcat listening on port 80. First time I inadvertently edited Server-minimal.xml instead of server.xml.
Once I'd edited the correct file, the url http://localhost/AwareIM/logonAdmin.html worked ok. (note - no :8080) but http://localhost did not (as I would expect). So now i/you/we just need to figure out how to set the default path
Once I'd edited the correct file, the url http://localhost/AwareIM/logonAdmin.html worked ok. (note - no :8080) but http://localhost did not (as I would expect). So now i/you/we just need to figure out how to set the default path
Thanks Rocketman,
I was able to get Tomcat to listen on port 80. This can also be accomplished through the settings menu on the control panel.
What I am trying to find out is how to setup Tomcat to serve up a page when you go to simply http://localhost. IIS for example comes preloaded with an under construction page. If IIS is running a website and you have done nothing to it then all users coming to your server will recieve this page.
I assume there has to be some way to get Tomcat to serve up a page when the user goes to the default http://localhost:8080 from the server (the port ends up only making a difference if you want Tomcat to handle HTTP requests).
Is Tomcat only able to function if it is given the path to the app (for example www.555.555.555.555.com/Aware/Myapp)?
Tip: if you want Tomcat to serve up your application with just the path in the browser bar you can make the following change.
C:\Library\Tomcat\webapps\AwareIM\WEB-INF\web.xml
Change the welcome file list entry from index.jsp to login.html or Adminlogin.html
Original:
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
Change to:
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>logon.html </welcome-file>
</welcome-file-list>
I was able to get Tomcat to listen on port 80. This can also be accomplished through the settings menu on the control panel.
What I am trying to find out is how to setup Tomcat to serve up a page when you go to simply http://localhost. IIS for example comes preloaded with an under construction page. If IIS is running a website and you have done nothing to it then all users coming to your server will recieve this page.
I assume there has to be some way to get Tomcat to serve up a page when the user goes to the default http://localhost:8080 from the server (the port ends up only making a difference if you want Tomcat to handle HTTP requests).
Is Tomcat only able to function if it is given the path to the app (for example www.555.555.555.555.com/Aware/Myapp)?
Tip: if you want Tomcat to serve up your application with just the path in the browser bar you can make the following change.
C:\Library\Tomcat\webapps\AwareIM\WEB-INF\web.xml
Change the welcome file list entry from index.jsp to login.html or Adminlogin.html
Original:
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
Change to:
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>logon.html </welcome-file>
</welcome-file-list>
-Bryan
Version 8 (Build 2358)
Version 8 (Build 2358)