# Files directive

**URL:** <https://www.ruby-forum.com/t/files-directive/201726>\
**Category:** NGINX\
**Created:** [January 13, 2011, 2:25pm UTC](https://www.ruby-forum.com/t/files-directive/201726 "2011-01-13T14:25:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [January 13, 2011, 2:25pm UTC](https://www.ruby-forum.com/t/files-directive/201726/1 "2011-01-13T14:25:14Z")

</div>

Hello all,  
Today in my Apache I use this directive in my htaccess:

```auto

  ForceType application/x-httpd-php

```

There is any alternative to it in nginx?

Thank You.

Posted at Nginx Forum:

> **[Files directive](https://forum.nginx.org/read.php?2,165850,165850#msg-165850)**
>
> Hello all, Today in my Apache I use this directive in my htaccess: \[code\] \<Files do\> ForceType application/x-httpd-php \</Files\> \[/code\] There is any alternative to it in nginx? Thank You.

---

<div class="post-metadata">

**Author:** ![andrecupini](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/35a633/32.png) [@andrecupini](https://www.ruby-forum.com/u/andrecupini)\
**Post date:** [January 16, 2011, 10:44am UTC](https://www.ruby-forum.com/t/files-directive/201726/2 "2011-01-16T10:44:50Z")

</div>

> There is any alternative to it in nginx?

location = /test.php  
{  
types {  
application/x-httpd-php php;  
}  
}
