openshift


Q: Service with multiple ports/protocols per route (e.g. HTTP and HTTPS) possible in OpenShift?


I am currently investigating OpenShift for use in our company.
We have a web application in a container, which exposes both port 80 http and port 443 https. Is it possible to run this container in OpenShift, using both ports over the SAME hostname? The OpenShift GUI lets me select only one port per service, if I try to create a route, and either http or https, not both. My use-case is, that my application is reachable on http://my-app as well as on https://my-app (in my opinion a quite common use-case)
It is not possible to have multiple routes with the same hostname and path. Only first such route will be admitted to the router.
The routes with paths will work as mentioned by #Graham
You can put all 3 below in a single project without problem:
example.com
example.com/hello
example.com/world
They can have different protocols. Adding a duplicate route with different protocol will not work.
Additionally if you have Project B, you won't be able to use example.com host again. So, none of the below will be accepted to a router:
example.com
example.com/hello
example.com/world
example.com/path
Which makes sense, as you don't want someone else to use your domain.
What usually happens when you have https exposed is that all http traffic is redirected to https.
You can achieve it by creating edge terminated route (over UI) and selecting Insecure Traffic: Redirect. There is also an option to set it to Allow.
More documentation and yaml examples if you would like to create route from command line: OpenShift Origin: Secured routes

Related Links

Unable to login to Openshift
“No system SSH available” error on OpenShift rhc snapshot save on Windows 8
How do I get WordPress emails working on OpenShift?
OpenShift Exceeding disk quota
where can I find the postreceive gear on openshfit?
Is it possible to run 'rhc snapshot save' without temporarily disabling your application?
Openshift scaling on specific (software) condition
Unable to install Openshift RHC tools
Advertising on free version of Openshift?
Can Scripts host on openshift connect remote mysql?
web2py with MongoHQ deploy at openshift: RuntimeError: no driver available ('pymongo',)
Custom node.js cartridge to support custom npm and node engine on Openshift
Openshift unable to connect to the server
rhc setup undefined method `[]' for nil:NilClass
Deploy tomcat application to root in openshift
ZendServer Expired licence in Openshift

Categories

HOME
xpath
webview
plesk
list
yaml
bots
postgresql-9.4
tcsh
dependencies
mosquitto
u-boot
native-base
timber
anchor
roku
msmq
clish
buffer
smartgwt
fosuserbundle
jaspersoft-studio
gitkraken
activeadmin
android-permissions
sqlplus
substring
vuforia
matlab-app-designer
toad
john-the-ripper
android-collapsingtoolbar
cmis
java-stream
autoencoder
keyboard-layout
assertions
haar-classifier
elasticsearch-aggregation
expandablelistview
transparency
type-inference
bit-shift
md5-file
1010
polymaps
mpmovieplayercontroller
perl-data-structures
oracle-fusion-apps
p6spy
tsqlt
fragmentstatepageradapter
perforce-integrate
maximize
i2b2
openmrs
astropy
android-studio-import
pythonxy
featuretoggle
gql
componentart
dbmigrate
clarion
kotlin-android-extensions
nhibernate-criteria
phonegap-facebook-plugin
window-resize
back
lmax
stripe.net
redpitaya
sqlbindparameter
ivalueconverter
hyphen
codahale-metrics
hints
rikulo
system-information
zotonic
kobold2d
monocross
mkannotation
differentiation
qtextbrowser
office-automation
winsxs
nosetests
photo-management
directshow.net
airprint
servlet-container
downgrade
raw-data
resharper-5.0
3270
tacit-programming
account-management

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App