Hide port for Ruby rail application

Basically Ruby Rail application run on its own port therefore in the application, we have to use the respective application with the domain name, for example the Ruby rail application is configured on the port 3111 then we will browse it in the browser as

http://yourdomainname.com:3111

By using the following simple code in the .htaccess, we can hide the Ruby rail application.

RewriteEngine on

RewriteCond %{HTTP_HOST} ^yourdomainname.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.yourdomainname.com$
RewriteRule ^typo-5.0.3 http://127.0.0.1:3111%{REQUEST_URI} [P,QSA,L]

If you have any query E-mail us…

About Anant 373 Articles
Senior technical writer