I have root access on the following environment:
Bluehost VPS - WHM 70, CentOS 6.1(kvm), Apache2.4(EasyApache4) /SSL enabled
Bluehost cPanel seems to indicate deprecating adding a rails app function, so I'm avoiding using it.
"Application Manager" does not appear to be showing at all in cPanel even though it is marked as enabled in WHM.
What I want to do is host a Ruby on Rails app as a subdomain of my primary domain.
When I run rails server -e development, it begin listening on 0.0.0.0:3000 or localhost:3000: so,
example.com -> php website(Wordpress). xxx.xxx.xxx.xxx:80 (I assuming port 80)
subdomain.example.com -> ruby on rails app. xxx.xxx.xxx.xxx:3000
In the Ubuntu/Apache world, I would simply create a virtualhost config for the ruby app so when users visit subdomain.example.com it loads the ruby on rails app.
Listen 3000
<VirtualHost *:3000>
ServerName subdomain.example.com
ServerAlias www.subdomain.example.com
DocumentRoot /public_html/ruby_app
XSendFile On
XSendFilePath /public_html/ruby_app/public/system
</VirtualHost>
It seems like WHM/cPanel EasyApache4 has some special approach, that is not obvious to me.
This thread seems to indicate that there's no way of configuring port-specific virtualhosts?
how to add multiple ports for apache + add some custom vhost with easyapache
Here's documentation I've reviewed:
Advanced Apache Configuration
Advanced Apache Configuration - EasyApache - cPanel Documentation
Modifying Virtualhost Containers with Include Files
Modify Virtualhost Containers With Include Files - EasyApache - cPanel Documentation
I've been able to include conf changes using the Individual Hosts Instructions for Apache 2.4 (with SSL) -> /usr/local/apache/conf/userdata/ssl/2_4/$user/$domain/$includename.conf
Trying to declare:
Listen 3000
OR
<VirtualHost *:3000>
#whatever
</VirtualHost>
within this .conf file both result in httpd build errors like ... <VirtualHost> cannot occur within <VirtualHost>
Apache 2.4 configuring multiple name-based vhosts
VirtualHost Examples - Apache HTTP Server Version 2.4
I've been working on this for 2-days trying to crack this nut. This should IMO be something that is more obvious in the cPanel/WHM world than it seems right now. If anyone could provide some input as to how to finish configuring this thing, I'd appreciate it.
Bluehost VPS - WHM 70, CentOS 6.1(kvm), Apache2.4(EasyApache4) /SSL enabled
Bluehost cPanel seems to indicate deprecating adding a rails app function, so I'm avoiding using it.
"Application Manager" does not appear to be showing at all in cPanel even though it is marked as enabled in WHM.
What I want to do is host a Ruby on Rails app as a subdomain of my primary domain.
When I run rails server -e development, it begin listening on 0.0.0.0:3000 or localhost:3000: so,
example.com -> php website(Wordpress). xxx.xxx.xxx.xxx:80 (I assuming port 80)
subdomain.example.com -> ruby on rails app. xxx.xxx.xxx.xxx:3000
In the Ubuntu/Apache world, I would simply create a virtualhost config for the ruby app so when users visit subdomain.example.com it loads the ruby on rails app.
Listen 3000
<VirtualHost *:3000>
ServerName subdomain.example.com
ServerAlias www.subdomain.example.com
DocumentRoot /public_html/ruby_app
XSendFile On
XSendFilePath /public_html/ruby_app/public/system
</VirtualHost>
It seems like WHM/cPanel EasyApache4 has some special approach, that is not obvious to me.
This thread seems to indicate that there's no way of configuring port-specific virtualhosts?
how to add multiple ports for apache + add some custom vhost with easyapache
Here's documentation I've reviewed:
Advanced Apache Configuration
Advanced Apache Configuration - EasyApache - cPanel Documentation
Modifying Virtualhost Containers with Include Files
Modify Virtualhost Containers With Include Files - EasyApache - cPanel Documentation
I've been able to include conf changes using the Individual Hosts Instructions for Apache 2.4 (with SSL) -> /usr/local/apache/conf/userdata/ssl/2_4/$user/$domain/$includename.conf
Trying to declare:
Listen 3000
OR
<VirtualHost *:3000>
#whatever
</VirtualHost>
within this .conf file both result in httpd build errors like ... <VirtualHost> cannot occur within <VirtualHost>
Apache 2.4 configuring multiple name-based vhosts
VirtualHost Examples - Apache HTTP Server Version 2.4
I've been working on this for 2-days trying to crack this nut. This should IMO be something that is more obvious in the cPanel/WHM world than it seems right now. If anyone could provide some input as to how to finish configuring this thing, I'd appreciate it.