# Gridfs on a sub-domain with nginx-gridfs module

**URL:** <https://www.ruby-forum.com/t/gridfs-on-a-sub-domain-with-nginx-gridfs-module/198901>\
**Category:** NGINX\
**Created:** [November 10, 2010, 12:26pm UTC](https://www.ruby-forum.com/t/gridfs-on-a-sub-domain-with-nginx-gridfs-module/198901 "2010-11-10T12:26:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [November 10, 2010, 12:26pm UTC](https://www.ruby-forum.com/t/gridfs-on-a-sub-domain-with-nginx-gridfs-module/198901/1 "2010-11-10T12:26:30Z")

</div>

Hi,

I want to use the Nginx-Gridfs module to server some static files,  
images to  
be precise, from GridFS. The examples in the ReadMe show how to set up  
paths  
for GridFS but I was unable to find a way to map a subdomain to GridFS,  
i.e.  
if I have [www.example.com](http://www.example.com) as my main domain then I would like to map  
[images.examples.com](http://images.examples.com) to GridFS. Images will be uploaded to GridFS through  
my  
Rails app.

How do I tell the Nginx server or the Nginx-GridFS module to do this  
mapping?

I am not sure if this is a question for this forum or the MongoDB forum  
and  
hence I posted the same question in both places. Sorry if this is the  
wrong  
place and also for cross-posting.

Thank you.

Regards,  
Brahmana

–  
Regards,  
Srirang G Doddihal  
Brahmana.

The LIGHT shows the way.  
The WISE see it.  
The BRAVE walk it.  
The PERSISTENT endure and complete it.

I want to do it all ALONE.
