Bug 785974

Summary: Make Skynet the default context for the server
Product: [Community] PressGang CCMS Reporter: Joshua Wulf <jwulf>
Component: Web-UIAssignee: Matthew Casperson <mcaspers>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: 1.xCC: cbredesen, lcarlon, lnewson, topic-tool-list
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-03 07:21:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joshua Wulf 2012-01-31 03:51:13 UTC
There is a setting that allows you to specify the default application on the server, so that connecting to skynet.bne.redhat.com:8080 will take you to that application, rather than the server splash page.

Can we set that for Skynet, so that users can connect with skynet.bne.redhat.com:8080?

There is also an apache redirect that can redirect users from port 80 to a custom port, so we can make it so that users can connect with simply: http://skynet.bne.redhat.com. Can we set that up as well?

Comment 1 Joshua Wulf 2012-01-31 04:05:04 UTC
Here's the Apache rewrite stuff: 
http://www.cyberciti.biz/tips/howto-apache-force-https-secure-connections.html

Add this line to /etc/httpd/httpd.conf

Redirect permanent / https://skynet.bne.redhat.com:8443

Comment 2 Joshua Wulf 2012-01-31 04:15:48 UTC
Here's something on making Skynet the default app for the server:

https://community.jboss.org/thread/87803

Comment 3 Matthew Casperson 2012-01-31 22:17:29 UTC
AS7 uses Tomcat (or JBoss Web, which is a fork of Tomcat)
http://docs.jboss.org/jbossweb/7.0.x/

Comment 4 Joshua Wulf 2012-02-01 01:56:45 UTC
In that case, maybe this one: 
http://benhutchison.wordpress.com/2008/07/30/how-to-configure-tomcat-root-context/

Comment 5 Lee Newson 2012-02-01 07:04:52 UTC
This can be done by setting the "enable-welcome-root" attribute to false and then adding the line:

<context-root>/</context-root>

to the jboss-web.xml file.

That last part might be able to be set by seam or soem other mechanism, I'm not really sure but I've tested the above way and it works locally.

Comment 6 Lee Newson 2012-02-01 07:13:00 UTC
I forgot to mention the "enable-welcome-root" attribute is in the server XML configuration file.

Comment 7 Joshua Wulf 2012-02-03 07:21:53 UTC
I've set up Apache redirection on the server. 

You can now access the production instance of Skynet with the url:

http://skynet.bne.redhat.com