Score:0

Apache not listing files recently added to directory

tn flag

I am completely lost. I have a site that has a subdirectory called "assets" that's listing files added in 2019 and earlier, but will not list files created in 2022 (I don't know why they haven't used this in three years).

Server version: Apache/2.4.6 (CentOS)
Server built:   Nov 10 2021 14:26:31

This is the config file that's allowing 10 of 13 files to be seen.

<VirtualHost *:80>
        ServerName example.com
        ServerAlias example.com
        Redirect / https://example.com/
        ErrorLog logs/error.log
        TransferLog logs/access.log
</VirtualHost>

<VirtualHost *:443>
        ServerAdmin [email protected]
        ServerName example.com
        ErrorLog logs/error.log
        TransferLog logs/access.log
        CustomLog logs/request.log \
                "%t %T %D %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b %s"
        LogLevel warn

        #EU CONFS
        #RewriteEngine On
        #RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

        SSLEngine on
        SSLProxyEngine on


        <Directory "/var/www/html/example.com">
                AllowOverride FileInfo Options
                Order allow,deny
                Allow from all
        </Directory>

        DocumentRoot /var/www/html/example.com

        ErrorDocument 404 https://example.com/notfound.html
        ErrorDocument 500 https://example.com/internal_error.html

        ProxyPass /imgui/cpgimages/ !
        ProxyPass /imgui ajp://proxy1
    ProxyPass /ui http://proxy2
</VirtualHost>

I tried explicitly adding a directory for assets, but it didn't help.

        <Directory "/var/www/html/example.com/assets">
                Options +Indexes +FollowSymLinks
                IndexOptions +ShowForbidden
                Require all granted
        </Directory>

What am I missing?

EDIT: I checked ownership/mode, all good. SELinux is permissive, but even if it weren't, contexts are correct. mod_cache is not in use, either.

Tilman Schmidt avatar
bd flag
Please show actual information instead of "I checked, all good". Show actual output of `ls -l /var/www/html/example.com/assets`. Show actual result of requesting `https://example.com/assets` either in a browser or with `wget` or `curl`. Show the log entries produced by that request. Also show result and log entry from directly requesting one of the files created in 2022 which aren't listed.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.