Hi, i want to configure https in my rails applications . for this i followed the article is http://whatimean.wordpress.com/2008/02/20/ssl-for-apache-and-rails/ i did same as meantioned in this link .my application url is http://localhost:3000/accounts/login but after applying https https://localhost/accounts/login here adding https but missing port number 3000. so got the error " Failed to Connect Firefox can't establish a connection to the server at localhost."
can anyone suggest any altrenative or where i did wrong
thanks in advance
Maybe you should post this problem "here":http://workingwithrails.com/forums/4-ask-a-rails-expert. The "Rails Experts":http://workingwithrails.com/forums/4-ask-a-rails-expert forum is much more active, and checked by many experimented rails developpers.
use ssl_requirement plugin its a good option having simple declarative way of specifying certain actions. http://agilewebdevelopment.com/plugins/ssl_requirement
There might be many problems but assuming you installed everything clean, there are many cases for which you may be getting error.
Case 1-> If everything works fine after giving localhost:3000, then you needs to modify the apache configuration file to give the correct name or URL(apache directives).
Case 2->If still the error remains, then its clearly the error in apache conf file itself. Check whether apache is running, whether the configuration file is correct. It can be checked using "sudo apachectl configtest". Sometimes the console may show that apache is already running but restart can be a good option.
Case 3-> If the logfile for apache is missing then it needs to be created in /var/log and create a directory named as apache2.
These are the few cases how you yourself can debug the error. Nothing much can be said as the full description of the problem is not there.
Hope this helps