We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon application shows directory listing

Hello,

I have followed all the steps given in tutorial and deployed project on AWS Linux server. I have already compiled and installed Phalcon framework. I can see it is enbaled in phpinfo. My folder structure is exactly as given in the tutorial. Created .htaccess files in app root and in public folder. Now when I acees the applicaiton using (ipaddress/myapp) is shows directory structure like app, public . If I try ipaddrress/myapp/public then it shows correct output in the browser. Do I need to setup additional configuration in Apache (httpd.conf file)? url_werite model is enabled and loaded. Any help is highly appreciated. Thanks & regards...



5.0k
Accepted
answer

Just disable it in your .htaccess:

Options -Indexes



1.4k

Hi Stephen,

Thanks a lot. I have done it in .htaccess file under myapp but it still shows directory.

edited Mar '14

you can also put it in your httpd.conf under directory. can you paste your htaccess here?



1.4k

Hi Stephen, ok, it is solved. I had to make changes in httpd.conf (AllowOverride All) to take the effect in .htaccess file.

Thanks a lot.

Regards... Uday

Np man glad i could be of assistance ;)