# How to configure rails app on non default port 443

**URL:** <https://www.ruby-forum.com/t/how-to-configure-rails-app-on-non-default-port-443/134948>\
**Category:** Rails\
**Created:** [April 16, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/how-to-configure-rails-app-on-non-default-port-443/134948 "2008-04-16T14:42:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slonghurst](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ac91a4/32.png) [@slonghurst](https://www.ruby-forum.com/u/slonghurst)\
**Post date:** [April 16, 2008, 2:42pm UTC](https://www.ruby-forum.com/t/how-to-configure-rails-app-on-non-default-port-443/134948/1 "2008-04-16T14:42:47Z")

</div>

I have a situation where i need to run name based virtual hosts in  
apache as I only have one IP address, but have a couple of rails sites.  
I have configured both successfully apart from the ssl side of things.  
Now i know that ssl cant be used with name based hosts so I am trying to  
configure one of my apps to use the non default ssl port so not 443 but  
to use 8443.

The rails app though keeps sending traffic through to port 443 so I am  
presuming this is a default. Is there a way to configure ssl to use a  
different port, i am using ssl\_required plugin.

Thanks
