# Can i run nginx caching and http server on same box?(newbie)

**URL:** <https://www.ruby-forum.com/t/can-i-run-nginx-caching-and-http-server-on-same-box-newbie/246171>\
**Category:** NGINX\
**Created:** [September 7, 2013, 6:12am UTC](https://www.ruby-forum.com/t/can-i-run-nginx-caching-and-http-server-on-same-box-newbie/246171 "2013-09-07T06:12:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [September 7, 2013, 6:12am UTC](https://www.ruby-forum.com/t/can-i-run-nginx-caching-and-http-server-on-same-box-newbie/246171/1 "2013-09-07T06:12:54Z")

</div>

can i run nginx caching and http server on same box?

can i set caching per directory and/or per server block?

how can i check what is actually being cached? logs?

should i place php scripts outside root location?

disclosure: newbie here aiming to ask the right questions(i have lots of  
them, the above should get me started).

thanks

Posted at Nginx Forum:

> **[can i run nginx caching and http server on same box?(newbie)](https://forum.nginx.org/read.php?2,242644,242644#msg-242644)**
>
> can i run nginx caching and http server on same box? can i set caching per directory and/or per server block? how can i check what is actually being cached? logs? should i place php scripts outside root location? disclosure: newbie here aim

---

<div class="post-metadata">

**Author:** ![anco](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c5a1d2/32.png) [@anco](https://www.ruby-forum.com/u/anco)\
**Post date:** [September 8, 2013, 5:19pm UTC](https://www.ruby-forum.com/t/can-i-run-nginx-caching-and-http-server-on-same-box-newbie/246171/2 "2013-09-08T17:19:18Z")

</div>

the answer is yes: [http://wiki.nginx.org](http://wiki.nginx.org)

Posted at Nginx Forum:

> **[Re: can i run nginx caching and http server on same box?(newbie)](https://forum.nginx.org/read.php?2,242644,242670#msg-242670)**
>
> can i run nginx caching and http server on same box? can i set caching per directory and/or per server block? how can i check what is actually being cached? logs? should i place php scripts outside root location? disclosure: newbie here aim
