How do i show a directory?

Hi,
I have an arch mirror at test.arch.niranjan.co, how do show the directories and files ??

Hi @niranjan,

Are you using Nginx or Nginx+Apache?

1 Like

Hello @sahsanu , I’m using Nginx+Apache!

Then you only need to create a .htaccess file in the dir with the content Options +Indexes

Example with user niranjan and domain test.arch.niranjan.co

echo 'Options +Indexes' >> /home/niranjan/web/test.arch.niranjan.co/public_html/.htaccess
1 Like

thanks for the replay! I’ll give this a shot and get back to you!

Hey, this did it.

What do you think should be the proper permissions for the public_html folder and its contents?

It will depend on the owner and group but if the owner and group is niranjan then 755 for directories and 644 for files. If the owner is niranjan and the group www-data, then 750 for directories and 640 for files.

1 Like

Thanks!

You’ve been of great help!

2 Likes

Hey @sahsanu , the .htacess file is getting removed automatically!

Hestia doesn’t create/remove/modify .htaccess files so another process is removing it.

1 Like