# Apche + SSL Configuration Issue

**URL:** <https://www.ruby-forum.com/t/apche-ssl-configuration-issue/153712>\
**Category:** Rails\
**Created:** [November 20, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/apche-ssl-configuration-issue/153712 "2008-11-20T12:16:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [November 20, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/apche-ssl-configuration-issue/153712/1 "2008-11-20T12:16:54Z")

</div>

Hi,

I am trying to setup the SSL for my site. i am using apache as  
webserver and mongrel cluster as application server and Ubuntu as  
server OS.

I have configured my apache server for the SSL setup as per the  
certificate files i got from Go daddy.

I configure apache server according to below link.

[http://www.williambharding.com/blog/rails/ultimate-guide-to-setup-ssl-on-rails-and-apache-2-with-ubuntu-seasoning/](http://www.williambharding.com/blog/rails/ultimate-guide-to-setup-ssl-on-rails-and-apache-2-with-ubuntu-seasoning/)

After configuring all the things and restarting apache when i am  
hitting url in browser as “Network Timeout” with page load error.

Checking at apache error log getting error as "caught SIGWINCH,  
shutting down gracefully  
Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.1 with Suhosin-Patch mod\_ssl/  
2.2.8 OpenSSL/0.9.8g configured – resuming normal operations  
"

Checking the application log getting error as “Filter chain halted as  
[#\<ActionController::Filters::ClassMethods::SymbolFilter:0xb73433a4  
@filter=:ensure\_proper\_protocol\>] returned\_false.”

Does anyone come across same issue ?

Thanks in Adavance.

Piyush.

---

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [November 20, 2008, 9:56pm UTC](https://www.ruby-forum.com/t/apche-ssl-configuration-issue/153712/2 "2008-11-20T21:56:27Z")

</div>

Do you have this in your Apache server virtual host file?

RequestHeader set X\_ORIGINAL\_PROTOCOL ‘https’

Mongrel, by design, does not do SSL. Redirects from inside the cluster  
will perforce become http. I do not know if this is your issue or not  
but it might be a place to start.

Good luck and please report back how you solve it.

---

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [November 20, 2008, 9:57pm UTC](https://www.ruby-forum.com/t/apche-ssl-configuration-issue/153712/3 "2008-11-20T21:57:59Z")

</div>

James B. wrote:

> Do you have this in your Apache server virtual host file?
> 
> RequestHeader set X\_ORIGINAL\_PROTOCOL ‘https’

Opps. I forgot to add this:

[http://blog.innerewut.de/2006/6/21/mongrel-and-rails-behind-apache-2-2-and-ssl](http://blog.innerewut.de/2006/6/21/mongrel-and-rails-behind-apache-2-2-and-ssl)

---

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [November 20, 2008, 11:30pm UTC](https://www.ruby-forum.com/t/apche-ssl-configuration-issue/153712/4 "2008-11-20T23:30:40Z")

</div>

James is on to something but you could also remove mongrel from the  
mix and just test a plain html or gif. How do you have it configured  
between apache and mongrel? ProxyPass ? Do you have the ssl plugin  
installed?

---

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [November 21, 2008, 9:42am UTC](https://www.ruby-forum.com/t/apche-ssl-configuration-issue/153712/5 "2008-11-21T09:42:41Z")

</div>

Yes James i already added this line RequestHeader set  
X\_ORIGINAL\_PROTOCOL ‘https’. but getting same issue…

On Nov 21, 1:57 am, James B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [November 21, 2008, 10:00am UTC](https://www.ruby-forum.com/t/apche-ssl-configuration-issue/153712/6 "2008-11-21T10:00:55Z")

</div>

i have installed ssl\_requirement plugin in my application. i have  
mongrel cluster and apache configuration installed.

---

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [November 25, 2008, 4:41pm UTC](https://www.ruby-forum.com/t/apche-ssl-configuration-issue/153712/7 "2008-11-25T16:41:41Z")

</div>

On Tue, Nov 25, 2008 at 6:08 AM, Piyush with Rails  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Can anyone tell me how to find out the ssl is installed here?

Your apache’s bin directory includes `apachectl` – run it without any  
args to get a list of args; you’ll probably be interested in trying  
several  
of them ( -l, -t for instance).

## HTH,

Hassan S. ------------------------ removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Piyush\_with\_Rails](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@Piyush\_with\_Rails](https://www.ruby-forum.com/u/Piyush_with_Rails)\
**Post date:** [November 25, 2008, 3:09pm UTC](https://www.ruby-forum.com/t/apche-ssl-configuration-issue/153712/8 "2008-11-25T15:09:15Z")

</div>

Hey, i tried with various ways doing apache configuration for ssl and  
still same issue persist. i feel that i do not have mod\_ssl installed  
or its not matching with my apache version. i am not sure about i have  
installed mod\_ssl or not and not able to find it out also.

some of the thins i got related with mod\_ssl in my system is given  
below.

I have /usr/lib/apache2/modules/mod\_ssl.so file here. i have mod\_ssl  
module enabled in apache.

I have ubuntu flavour of linux and my apache version is 2.2.8.

Right now my site is up without ssl and configuring apache with ssl  
giving me this error:

“caught SIGWINCH, shutting down gracefully  
Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.1 with Suhosin-Patch mod\_ssl/  
2.2.8 OpenSSL/0.9.8g configured – resuming normal operations”

Can anyone tell me how to find out the ssl is installed here?

What is going wrong here and need to be done to get ssl work?

Thanks,  
Piyush.
