Apache 2.4.12 don't serve me the index.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



After switching from Apache 2.0.64 to 2.4.12 I have some issues on
loading my index.html or any other html page. I always get a 404 Not
found Error Message in my Browser. But if I try to access a simple
index.php with "Hello World "in the same directory that works. I
allready check the user right for the files in /var/www.

What could be the issue here?

My website is located in /var/www

Message in the Browser:

Not Found
The requested URL / was not found on this server.

my /var/log/apache2/error_log:

[Tue Jan 06 19:23:09.446724 1970] [authz_core:debug] [pid 1397]
mod_authz_core.c(809): [client 192.168.2.99:51306] AH01626:
authorization result of Require all granted: granted
[Tue Jan 06 19:23:09.447385 1970] [authz_core:debug] [pid 1397]
mod_authz_core.c(809): [client 192.168.2.99:51306] AH01626:
authorization result of <RequireAny>: granted
[Tue Jan 06 19:23:09.448167 1970] [core:info] [pid 1397] [client 192.168.2.99:51

my /etc/apache2/httpd.conf:

ServerRoot /usr/share/apache2

PidFile /var/run/apache2.pid

Listen 0.0.0.0:80

LoadModule unixd_module /usr/share/apache2/modules/mod_unixd.so
#LoadModule ssl_module /usr/share/apache2/modules/mod_ssl.so
LoadModule authz_core_module /usr/share/apache2/modules/mod_authz_core.so
LoadModule authz_user_module /usr/share/apache2/modules/mod_authz_user.so
LoadModule authz_host_module /usr/share/apache2/modules/mod_authz_host.so
LoadModule authn_core_module /usr/share/apache2/modules/mod_authn_core.so
LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule dir_module /usr/share/apache2/modules/mod_dir.so

<IfModule unixd_module>

User www
Group www

</IfModule>

ServerAdmin you@xxxxxxxxxxx

ServerName localhost

DocumentRoot /var/www

<Directory />
    Options Indexes FollowSymLinks
    AllowOverride None
</Directory>

<Directory /var/www>
    Options FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

<Files ".ht*">
    Require all denied
</Files>

ErrorLog "/var/log/apache2/error_log"

LogLevel debug

<IfModule log_config_module>

    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    CustomLog "/var/log/apache2/access_log" common
</IfModule>

<IfModule alias_module>
    ScriptAlias /cgi-bin/ "/usr/cgi-bin/"
</IfModule>

<IfModule cgid_module>

</IfModule>

<Directory "/usr/cgi-bin">
    AllowOverride None
    Options None
    Require all granted
</Directory>

<IfModule mime_module>
    TypesConfig /etc/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
</IfModule>

<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>

LoadModule php5_module /usr/share/apache2/modules/libphp5.so

<IfModule mod_php5.c>
    <FilesMatch "\.ph(p3?|tml)$">
        SetHandler application/x-httpd-php
    </FilesMatch>
    <FilesMatch "\.phps$">
        SetHandler application/x-httpd-php-source
    </FilesMatch>
</IfModule>

<IfModule mod_ssl.c>
    Include /etc/apache2/mod_ssl.conf
</IfModule>


Thanks in advance

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux