Hi All,
I want to run my application with domain name rather than local host ,so i followed the below steps,but i’m having unable to connect error ,can any one help me on this.
gem install passenger
passenger-install-apache2-module
_My rails app location:
/var/www/rails
cd /etc/apache2/sites-available
touch m-lo-lo.com(my virtualhost file)
<VirtualHost 127.0.0.1:8081>
#ServerAdminwebmaster@myapp.com
ServerName m-lo-lo.com
DocumentRoot “/root/var/www/rails/public/”
<Directory “/root/var/www/rails/public/”>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
RailsEnv production
PassengerMaxPoolSize 25
LogLevel warn
ErrorLog /var/log/apache2/rails/error.log
CustomLog /var/log/apache2/rails/access.log combined
To create symbolic link for virtual host file in “sites-enabled” directory
ln -s /etc/apche2/sites-available/m-lo-lo.com /etc/apche2/sites-enabled/m-lo-lo.com
The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
vi port.conf
Listen 8081
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
Listen 443
I created a file "passenger.load "in mod-available directory:
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7
PassengerRuby /usr/bin/ruby1.8
a2ensite m-lo-lo.com
Site m-lo-lo.com enabled
/etc/init.d/apache2 reload
/etc/init.d/apache2 restart
mkdir /var/log/apache2/rails/
touch access.log
touch error.log
cd /var/www/rails
touch tmp/restart.txt
hit my browser with
http://m-lo-lo.com
didnt have anything ._
Hi All,
I want to run my application with domain name rather than local host ,so i followed the below steps,but i’m having unable to connect error ,can any one help me on this.
gem install passenger
passenger-install-apache2-module
_My rails app location:
/var/www/rails
cd /etc/apache2/sites-available
touch m-lo-lo.com(my virtualhost file)
<VirtualHost 127.0.0.1:8081>
#ServerAdminwebmaster@myapp.com
ServerName m-lo-lo.com
DocumentRoot “/root/var/www/rails/public/”
<Directory “/root/var/www/rails/public/”>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
RailsEnv production
PassengerMaxPoolSize 25
LogLevel warn
ErrorLog /var/log/apache2/rails/error.log
CustomLog /var/log/apache2/rails/access.log combined
To create symbolic link for virtual host file in “sites-enabled” directory
ln -s /etc/apche2/sites-available/m-lo-lo.com /etc/apche2/sites-enabled/m-lo-lo.com
The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
vi port.conf
Listen 8081
# If you add NameVirtualHost *:443 here, you will also have to change
# the VirtualHost statement in /etc/apache2/sites-available/default-ssl
# to <VirtualHost *:443>
# Server Name Indication for SSL named virtual hosts is currently not
# supported by MSIE on Windows XP.
Listen 443
Listen 443
I created a file "passenger.load "in mod-available directory:
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.7
PassengerRuby /usr/bin/ruby1.8
a2ensite m-lo-lo.com
Site m-lo-lo.com enabled
/etc/init.d/apache2 reload
/etc/init.d/apache2 restart
mkdir /var/log/apache2/rails/
touch access.log
touch error.log
cd /var/www/rails
touch tmp/restart.txt
hit my browser with
http://m-lo-lo.com
didnt have anything ._
That domain is not registered/does not exist. You would need to purchase the domain and point it at your server. If you are running this in dev on you local machine you can just edit the host file.
I’ve got a very simple OmniAuth install. I’ve registered the app with
facebook and the login works fine. When Facebook runs it’s callback
and tries to pull up localhost:3000/auth/facebook/callback, I get a
“page can’t be displayed” in my browser and in the terminal window
where I’m running “rails server” it crashes with a Ruby SegFault.
So I had this same issue, I solved it by adding privacy and tos urls
to the fb app. Everything running fine so it probably had nothing to
do with switching to Mongo
Wow - that's kind of bizarre. I know getting rid of the postgres gem worked because I have pretty modular commits. With the pg gem, segfault. With sqlite (in dev), no segfault. So while I doubt it's an issue with the postgres gem per se, removing the postgres gem (and re-running bundler) was the only change I made. I even rolled back the change and confirmed I got the segfault again. I did. No changes in the f/b app settings during that time, and it had been more than an hour since I'd created it, so it's unlikely to be a change I made to the f/b app settings that was just taking a while to propegate.
Also, following some of the threads out there, the pg gem has been mentioned by a couple of other people (which was why I thought to try it).