# Secure static html pages with Mongrel cluster on apache in

**URL:** <https://www.ruby-forum.com/t/secure-static-html-pages-with-mongrel-cluster-on-apache-in/151427>\
**Category:** Rails\
**Created:** [October 21, 2008, 11:09am UTC](https://www.ruby-forum.com/t/secure-static-html-pages-with-mongrel-cluster-on-apache-in/151427 "2008-10-21T11:09:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![simham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@simham](https://www.ruby-forum.com/u/simham)\
**Post date:** [October 21, 2008, 11:09am UTC](https://www.ruby-forum.com/t/secure-static-html-pages-with-mongrel-cluster-on-apache-in/151427/1 "2008-10-21T11:09:50Z")

</div>

I have security issue with Apache and mongrel cluster and Ruby on Rails.

My Application is in ruby on rails and deployed using apache and mongrel  
cluster.

I am able to secure the .rhtml files using filters.

I have few static html files, which I placed, in one of the sub folders  
of Public folder.

I am giving link from my .rhtml files to static .html file.

I want to access the static html only If the user login to my  
application and browse the static html files.

I want to restrict the user access when the user tries to access the  
static html directly by typing the URL

So how can I secure my static html pages in ROR with Mongrel cluster on  
Windows with Apache Server?

Please provide your valuable suggestions.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![simham](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@simham](https://www.ruby-forum.com/u/simham)\
**Post date:** [October 21, 2008, 12:06pm UTC](https://www.ruby-forum.com/t/secure-static-html-pages-with-mongrel-cluster-on-apache-in/151427/2 "2008-10-21T12:06:12Z")

</div>

Nara Simha wrote:

> I want to restrict the user access when the user tries to access the  
> static html directly by typing the URL

The way I do this is serve the files from rails using send\_file.
