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?
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
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.
Thanks!
You’ve been of great help!
Hey @sahsanu , the .htacess file is getting removed automatically!
Hestia doesn’t create/remove/modify .htaccess
files so another process is removing it.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.