I know that in Goggle a bunch of answers. But neither one approached me. I myself am very poorly versed in this. For this, I ask for help from you. Here are the contents of httpd.conf:

DirectoryIndex index.html index.phpOptions IndexesServerName 127.0.0.1 

.htaccess:

 Options Indexes 

apache2.conf:

 LockFile ${APACHE_LOCK_DIR}/accept.lockPidFile ${APACHE_PID_FILE}Timeout 300KeepAlive OnMaxKeepAliveRequests 100same client on the same connection.KeepAliveTimeout 5<IfModule mpm_prefork_module> StartServers 5 MinSpareServers 5 MaxSpareServers 10 MaxClients 150 MaxRequestsPerChild 0</IfModule><IfModule mpm_worker_module> StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild 0</IfModule><IfModule mpm_event_module> StartServers 2 MinSpareThreads 25 MaxSpareThreads 75 ThreadLimit 64 ThreadsPerChild 25 MaxClients 150 MaxRequestsPerChild 0</IfModule>User ${APACHE_RUN_USER}Group ${APACHE_RUN_GROUP}AccessFileName .htaccess<Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy all</Files>DefaultType NoneHostnameLookups OffErrorLog ${APACHE_LOG_DIR}/error.logLogLevel warnInclude mods-enabled/*.loadInclude mods-enabled/*.confInclude httpd.confInclude ports.confLogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combinedLogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combinedLogFormat "%h %l %u %t \"%r\" %>s %O" commonLogFormat "%{Referer}i -> %U" refererLogFormat "%{User-agent}i" agentInclude conf.d/Include sites-enabled/Include /etc/phpmyadmin/apache.conf 

    2 answers 2

    Yes, you yourself indicated in httpd.conf :

    DirectoryIndex index.html index.php

    here he is looking for them!

    Comment out this line and you will be happy!

    Link to dock (no google is needed): Apache Module mod_dir .

      It is not entirely clear what the question is. If you take the premise from the header, then most likely you can not access your own web server?

      Perhaps you are missing the Listen Apache Listen directive which tells the web server on which port to work and from which addresses to accept connections.

      • I can not browse directories that do not contain index.html or index.phpWith this, I associate the reluctance of the web server to display images. - Pavel Sotnikov
      • Look here, maybe here you will find a solution. httpd.apache.org/docs/2.2/mod/core.html#options You are worth the Options Indexes is normal behavior for Apache. Maybe it makes sense to see if your mod_autoindex module is active - Sphinx