Apache does not see subdirectories / var / www

I am trying to get a basic site running under Apache 2. In the end, I use mod_wsgi to serve the django application, but at the moment I started with a really simple version of the default virtual host, currently just showing the list of / var / www directories. The problem I am facing is that the server does not seem to see the directory "/ var / www / mysite". Browsing www.mysite.com/ gives me a list as expected in the / var / www directory, but shows only files, not directories.

Please someone tell me if there is something obvious that I'm not here.

Thank you in advance

Virtual Host File:

<VirtualHost *:80>
    ServerName www.mysite.com
    ServerAdmin webmaster@localhost

    DocumentRoot /var/www
    <Directory />
            Options FollowSymLinks +Indexes
            AllowOverride None
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    ErrorLog /var/log/apache2/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog /var/log/apache2/access.log combined

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

</VirtualHost>

List / var / www (including the security context 'ls -Zl / var / www')

-rw-r--r-- 1 www-data www-data ?   45 Jul 14 15:37 index.html__
-rw-r--r-- 1 www-data www-data ?   91 Aug  9 14:19 index2__.html
drw-r--r-- 2 www-data www-data ? 4096 Aug  9 14:36 mysite
+3
1

mysite, apache :

chmod a+x mysite
+4

Source: https://habr.com/ru/post/1714717/


All Articles