Dynamic configuration

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:
http://forum.nginx.org/read.php?2,259602,259602#msg-259602

IMHO, it’s too much to explain in a few lines.
Did you read 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”.

Thanks for reply @ryd994. I’ve read the documentation and still read,
but
did not find a way :slight_smile:
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 :frowning:
Thanks again!

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,259602,259679#msg-259679

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs