Welcome! Log In Create A New Profile


Nginx and directory listing

Posted by artur_dziocha 
Nginx and directory listing
January 04, 2011 07:20AM
I'm trying to configure nginx but i have one problem.
I have a file and directory paths that look like:
/var/www/test/public_html/opp/dirIterator( in this dir files like ArrayIter.php, Iter.php, etc. )

root in vhost is set to /var/www/test/public_html( autoindex on; ).
Is it possible to browse directories and execute files placed in them like:

http://test/oop/diriterator/ArrayIterator.php and it executes file ArrayIterator.php

in apache it works without problems, but I have problem in nginx with setting something like this.
I have standard configuration in nginx
Link http://test/ listed me directories bu i can't go to subdirectories

Is there is a possibility to setting this like in apache?
Thanks for response
Artur Dziocha

Edited 1 time(s). Last edit at 01/04/2011 07:21AM by artur_dziocha.
Re: Nginx and directory listing
January 04, 2011 08:46AM
Sorry. Unfortunately, I forgot to change the permissions for subdirectories. Now it's works' perfectly:)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready