# Can't access sub directories

**URL:** <https://www.ruby-forum.com/t/cant-access-sub-directories/219062>\
**Category:** NGINX\
**Created:** [April 19, 2012, 7:19pm UTC](https://www.ruby-forum.com/t/cant-access-sub-directories/219062 "2012-04-19T19:19:00Z")\
**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:** [April 19, 2012, 7:19pm UTC](https://www.ruby-forum.com/t/cant-access-sub-directories/219062/1 "2012-04-19T19:19:00Z")

</div>

with my current config, i can access the root directory  
but i cant access any directory below it…  
here’s my vhost config:

[http://pastebin.com/50pyYDtS](http://pastebin.com/50pyYDtS)

here’s my nginx config:

[http://pastebin.com/n1HXxVmu](http://pastebin.com/n1HXxVmu)

thanks for any assistance

Posted at Nginx Forum:

> **[can't access sub directories](https://forum.nginx.org/read.php?2,225528,225528#msg-225528)**
>
> with my current config, i can access the root directory but i cant access any directory below it... here's my vhost config: http://pastebin.com/50pyYDtS here's my nginx config: http://pastebin.com/n1HXxVmu thanks for any assis

---

<div class="post-metadata">

**Author:** ![sirvon](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/848f3c/32.png) [@sirvon](https://www.ruby-forum.com/u/sirvon)\
**Post date:** [April 19, 2012, 9:31pm UTC](https://www.ruby-forum.com/t/cant-access-sub-directories/219062/2 "2012-04-19T21:31:50Z")

</div>

On Thu, Apr 19, 2012 at 01:18:14PM -0400, sirvon wrote:

Hi there,

> with my current config, i can access the root directory  
> but i cant access any directory below it…

With that configuration, I’d expect that any non-php request to a url  
that starts [http://sourcemarine.net/](http://sourcemarine.net/) would be served directly from the  
filesystem below /usr/share/nginx/html/sourcemarine.net

I’m not able to work out how you want php requests to be handled.

After “fastcgi\_pass”, the configuration becomes unclear. By which I mean  
“probably broken”.

So, when you say “cant access any directory below it”: can you nominate  
one specific url, and say what you actually get when you fetch it,  
and say what you expect to get when you fetch it?

I suspect that the output of something like

curl -i [http://sourcemarine.net/one/two](http://sourcemarine.net/one/two)

will be useful.

If the problem is with the php configuration, then can you describe how  
you would like the request to be handled?

As in, if I access [http://sourcemarine.net/one/two.php/three](http://sourcemarine.net/one/two.php/three), which php  
file do you want “the system” to read and process?

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
