Custom 404 page

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
RLJB
Posts: 914
Joined: Tue Jan 05, 2010 10:16 am
Location: Sydney, Australia

Custom 404 page

Post by RLJB »

Can anyone give a hint as to where we can modify the 404 page that is thrown in Aware?
Rod. Aware 8.6 (latest build), Developer Edition, on OS Linux (Ubuntu) using GUI hosted on AWS EC2, MYSQL on AWS RDS
BobK
Posts: 545
Joined: Thu Jan 31, 2008 2:14 pm
Location: Cincinnati, Ohio, USA

Post by BobK »

I am also interested in doing this.

I have not had time to investigate this very much, but I think, there might be a setting in the tomcat config file to handle this.

I know that is not a definite answer, but you only asked for a hint anyway :lol:
Bob
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Yes, this is displayed by Tomcat, so you need to check Tomcat documentation what is possible there
Aware IM Support Team
kklosson
Posts: 1628
Joined: Sun Nov 23, 2008 3:19 pm
Location: Virginia

Post by kklosson »

I'm not clear, under what circumstances will a 404 error occur within the scope of an application?
aware_admin
Site Admin
Posts: 65
Joined: Sun Jan 02, 2005 4:36 am
Contact:

Post by aware_admin »

It is displayed if you specify an invalid URL
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

SOLVED

Post by Rennur »

Steps to create a custom 404, 500 error pages.

Default Tomcat 404 error page
  • Image
My custom 404 error page. Button takes me to the login page.
  • Image
1) Open AwareIM/Tomcat/conf/web.xml using any text editor.
2) Down the bottom of the page after </welcome-file-list> insert
  • Code: Select all

       <error-page>  
           <error-code>404</error-code>  
           <location>/404.html</location>  
       </error-page> 

3) Create your own HTML 404 page, name it 404.html and save it in your c:/AwareIM/Tomcat/webapps/AwareIM/ folder and any images or CSS used.
4) To test it, type http://localhost:8080/AwareIM/logonOp.aww in the browser

Code: Select all

http://localhost:8080/AwareIM/logonOp.aww
For error 500:
  • Code: Select all

       <error-page>  
           <error-code>500</error-code>  
           <location>/500.html</location>  
       </error-page> 


Here's a link to some creative error 404 pages
http://www.hongkiat.com/blog/60-really- ... 404-pages/

Cheers
hpl123
Posts: 2604
Joined: Fri Feb 01, 2013 1:13 pm
Location: Scandinavia

More 404

Post by hpl123 »

For more 404 pages, look here (Themeforest):
http://themeforest.net/category/site-te ... /4-4-pages
Henrik (V8 Developer Ed. - Windows)
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Post by Rennur »

You should also include a copy of the the 404.html in Tomcat/webapps/ROOT directory.

Rename the 404.html to index.html. This way, if anyone types the wrong url after the my.ip:8080/, the 404 error will show up.
Post Reply