# How to deploy multiple application in nginx?

**URL:** <https://www.ruby-forum.com/t/how-to-deploy-multiple-application-in-nginx/220327>\
**Category:** NGINX\
**Created:** [June 6, 2012, 4:52am UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-application-in-nginx/220327 "2012-06-06T04:52:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gurdipe\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/b77776/32.png) [@Gurdipe\_D](https://www.ruby-forum.com/u/Gurdipe_D)\
**Post date:** [June 6, 2012, 4:52am UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-application-in-nginx/220327/1 "2012-06-06T04:52:34Z")

</div>

hi:  
now,i want to use nginx to run php,but now ,i only run one php  
application in nginx.For example,my web root is D:\PHPWeb,in this  
directory i have two php applications ‘example1’ and ‘example2’  
respectively.In each application there exists a .htaccess file,i don’t  
know how do i to run this two application?

thank you

Posted at Nginx Forum:

> **[how to deploy multiple application in nginx?](https://forum.nginx.org/read.php?2,227251,227251#msg-227251)**
>
> hi: now,i want to use nginx to run php,but now ,i only run one php application in nginx.For example,my web root is D:\\PHPWeb\\,in this directory i have two php applications 'example1' and 'example2' respectively.In each application there exists a...

---

<div class="post-metadata">

**Author:** ![jessusniww](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/4491bb/32.png) [@jessusniww](https://www.ruby-forum.com/u/jessusniww)\
**Post date:** [June 6, 2012, 10:46am UTC](https://www.ruby-forum.com/t/how-to-deploy-multiple-application-in-nginx/220327/2 "2012-06-06T10:46:46Z")

</div>

This problem had been solved by Nginx rewrite.

Posted at Nginx Forum:

> **[Re: how to deploy multiple application in nginx?](https://forum.nginx.org/read.php?2,227251,227266#msg-227266)**
>
> hi: now,i want to use nginx to run php,but now ,i only run one php application in nginx.For example,my web root is D:\\PHPWeb\\,in this directory i have two php applications 'example1' and 'example2' respectively.In each application there exists a...
