# Dynamic configuration

**URL:** <https://www.ruby-forum.com/t/dynamic-configuration/242307>\
**Category:** NGINX\
**Created:** [June 14, 2015, 1:22pm UTC](https://www.ruby-forum.com/t/dynamic-configuration/242307 "2015-06-14T13:22:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [June 14, 2015, 1:22pm UTC](https://www.ruby-forum.com/t/dynamic-configuration/242307/1 "2015-06-14T13:22:02Z")

</div>

HI there, these days i reinstall my windows and … i found hot water,  
with  
vagrant. I very like it those stuff, i installed ubuntu, with nginx,  
php5-fpm and many other stuff, but still missing basic configuration.  
In my project directory, i have many projects - symfony2, wordpress, my  
own  
framework, facebook app and simple test files. In my nginx  
configuration,  
those not work actually, becouse (i think) a root directory.  
I wanna every project can open in a separate sub directory (ex:  
/localhost/projects/wordpress1, or  
/localhost/development/symfony2/web/). Is  
it possible with nginx :S  
Can u give me some example configuration like those

Posted at Nginx Forum:

> **[Dynamic configuration](https://forum.nginx.org/read.php?2,259602,259602#msg-259602)**
>
> HI there, these days i reinstall my windows and ... i found hot water, with vagrant. I very like it those stuff, i installed ubuntu, with nginx, php5-fpm and many other stuff, but still missing basic configuration. In my project directory, i have...

---

<div class="post-metadata">

**Author:** ![Replace](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@Replace](https://www.ruby-forum.com/u/Replace)\
**Post date:** [June 15, 2015, 6:08am UTC](https://www.ruby-forum.com/t/dynamic-configuration/242307/2 "2015-06-15T06:08:38Z")

</div>

IMHO, it’s too much to explain in a few lines.  
Did you read [Beginner’s Guide](http://nginx.org/en/docs/beginners_guide.html) ? Then you  
might  
want to read about rewrite module, fcgi and php, and configure your  
application to output correct link or use subs module. If you know how  
to  
use hosts file, use it with nginx virtual site will be a good idea for  
testing.

If all you need is a working environment, asking a friend who knows  
nginx  
to spend an hour for you will be much easier. Sorry I can’t just “write  
a  
config”.

---

<div class="post-metadata">

**Author:** ![Replace](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ecae2f/32.png) [@Replace](https://www.ruby-forum.com/u/Replace)\
**Post date:** [June 17, 2015, 11:15am UTC](https://www.ruby-forum.com/t/dynamic-configuration/242307/3 "2015-06-17T11:15:03Z")

</div>

Thanks for reply @ryd994. I’ve read the documentation and still read,  
but  
did not find a way 🙂  
Nevermind, I decided every project have own server block, for better  
debug.  
That’s also nice, but now i have little problem with move some old  
project,  
with very large htaccess ☹  
Thanks again!

Posted at Nginx Forum:

> **[Re: Dynamic configuration](https://forum.nginx.org/read.php?2,259602,259679#msg-259679)**
>
> HI there, these days i reinstall my windows and ... i found hot water, with vagrant. I very like it those stuff, i installed ubuntu, with nginx, php5-fpm and many other stuff, but still missing basic configuration. In my project directory, i have...
