0

I have a website (https://hypermotions.com) which shows directory listing in some browsers only (such as iOS Chrome App), but most desktop & mobile browsers are able to display the website correctly.

What makes the Apache server having such behavior? The website is built using https://imcreator.com, but sure if it's related (thus I have no control on the files, such as .htaccess).

Raptor
  • 991
  • 3
  • 16
  • 36

1 Answers1

0

You can modify the site apache config:

<Directory /var/www/xxxxxxx/xxxxxx>
    Options -Indexes +FollowSymLinks +MultiViews
    AllowOverride None
    ...........
    ..........
</Directory>

I hope this fixes your issue.

Odie
  • 11
  • 1
  • As I mentioned, I don't have the access to `.htaccess`, and it cannot explain why it's browser-specific. – Raptor Dec 03 '19 at 06:05
  • The changes I am suggesting are to be done in the /etc/apache2/sites-xxxxxx not .htaccess. The options listed enforce this behavior. In addition, if your site configuration does not have a DirectoryIndex directive. Some browsers will attempt to index the site instead of displaying it. – Odie Dec 03 '19 at 08:09
  • Understand. But it's hosted in IMCREATOR, therefore I have no control of any files. – Raptor Dec 03 '19 at 09:15