# Opening a image located outside the public folder

**URL:** <https://www.ruby-forum.com/t/opening-a-image-located-outside-the-public-folder/166014>\
**Category:** Rails\
**Created:** [April 21, 2009, 1:11am UTC](https://www.ruby-forum.com/t/opening-a-image-located-outside-the-public-folder/166014 "2009-04-21T01:11:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elioncho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ed8c4c/32.png) [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Post date:** [April 21, 2009, 1:11am UTC](https://www.ruby-forum.com/t/opening-a-image-located-outside-the-public-folder/166014/1 "2009-04-21T01:11:32Z")

</div>

Hello!

Can anyone help me on how to open an image on the browser NOT located  
in the public folder. I am using the ![]() tag, but the image doesn’t  
opens because it’s outside the public folder.

Thanks,

Elías

---

<div class="post-metadata">

**Author:** ![elioncho](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ed8c4c/32.png) [@elioncho](https://www.ruby-forum.com/u/elioncho)\
**Post date:** [April 21, 2009, 1:44am UTC](https://www.ruby-forum.com/t/opening-a-image-located-outside-the-public-folder/166014/2 "2009-04-21T01:44:51Z")

</div>

Do you have Apache as a frontend? then use alias and a directory  
element to point apache away from the public directory.

Or use a symlink
