You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Oliver Graute <ol...@gmail.com> on 2015/02/25 08:45:10 UTC

[users@httpd] Apache 2.4.12 don't serve me the index.html

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@example.com

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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.4.12 don't serve me the index.html

Posted by Oliver Graute <ol...@gmail.com>.
Hello Eric,

here the same request with curl

curl --noproxy 192.168.2.1 http://192.168.2.1/index.html
curl: (52) Empty reply from server

curl --noproxy 192.168.2.1 http://192.168.2.1/hello.php
<html>
 <head>
   <title>PHP-Test</title>
    </head>
     <body>
    <p>Hallo Welt</p> </body>
</html>

if i rename my index.html to index.php i get a response

curl --noproxy 192.168.2.1 http://192.168.2.1/index.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tainy IQ-S</title>
  <script type="text/javascript" src="prototype.js"></script>
  <script type="text/javascript" src="protoplasm.js"></script>
  <script type="text/javascript" src="iqslabels.js"></script>
  <script type="text/javascript" src="iqsframework.js"></script>
  <script type="text/javascript" src="iqsconfig.js"></script>
  <script type="text/javascript">
      Protoplasm.use('datepicker');//.transform('input.datetimepicker',
{ timePicker: true, use24hrs: true });
  </script>
<link href="/style.css" rel="stylesheet" type="text/css" />
</head>

<body onload="Display()">
<div id="top">
    <div style="float:left; width:auto">
        <img id="IMG_STATUS_BLANK" src="Icon-Blank.jpg"
style="display:inline;" />
        <img id="IMG_STATUS_SIGNAL1" src="Icon-Signal-1.jpg"
style="display:none;" />
        <img id="IMG_STATUS_SIGNAL2" src="Icon-Signal-2.jpg"
style="display:none;" />
        <img id="IMG_STATUS_SIGNAL3" src="Icon-Signal-3.jpg"
style="display:none;" />
        <img id="IMG_STATUS_SIGNAL4" src="Icon-Signal-4.jpg"
style="display:none;" />
        <img id="IMG_STATUS_SIGNAL5" src="Icon-Signal-5.jpg"
style="display:none;" />
        <img id="IMG_STATUS_GPRS" src="Icon-GPRS.jpg" style="display:none;" />
        <img id="IMG_STATUS_EGDE" src="Icon-EDGE.jpg" style="display:none;" />
        <img id="IMG_STATUS_3G" src="Icon-3G.jpg" style="display:none;" />
        <img id="IMG_STATUS_LTE" src="Icon-LTE.jpg" style="display:none;" />
        <img id="IMG_STATUS_SPACE_1" src="Icon-Space.jpg"
style="display:none;" />
        <img id="IMG_STATUS_DSL" src="Icon-DSL.jpg" style="display:none;" />
        <img id="IMG_STATUS_SPACE_2" src="Icon-Space.jpg"
style="display:none;" />
        <img id="IMG_STATUS_VPN" src="Icon-VPN.jpg" style="display:none;" />
    </div>
    <div style="float:right; width:auto">
        <img id="IMG_STATUS_BLANK" src="Icon-Blank.jpg" style="display:none;" />
        <a href="javascript:LoadConfigConfirm();"
id="IMG_STATUS_TIMER" style="display:none;"><img src="Icon-Timer.jpg"
style="border: none;" /></a>
        <img id="IMG_STATUS_SPACE_3" src="Icon-Space.jpg"
style="display:none;" />
        <img id="IMG_STATUS_PORT1" src="Icon-Port-1.jpg"
style="display:none;" />
        <img id="IMG_STATUS_PORT2" src="Icon-Port-2.jpg"
style="display:none;" />
        <img id="IMG_STATUS_PORT3" src="Icon-Port-3.jpg"
style="display:none;" />
        <img id="IMG_STATUS_PORT4" src="Icon-Port-4.jpg"
style="display:none;" />
        <img id="IMG_STATUS_PORT5" src="Icon-Port-5.jpg"
style="display:none;" />
        <img id="IMG_STATUS_SPACE_4" src="Icon-Space.jpg"
style="display:none;" />
        <a href="javascript:SubmitLogOut();"
style="display:inline;"><img src="Icon-LogOut.jpg" style="border:
none;" /></a>
        <img id="IMG_STATUS_BLANK" src="Icon-Blank.jpg"
style="display:inline;" />
    </div>
  <div id="head-link">
    <p class="index">
     &nbsp; &nbsp; </p>
  </div>
    <div style="clear:right"></div>
  <div id="head">&nbsp;</div>
    <div id="navi">
        <ul id="Navigation">
        </ul>
        <br style="clear:both;"/>
        <br style="clear:both;"/>
    </div>
</div>


<div id="content">
    <div id="navi-side">
    <ul id="nav-secondary">
        </ul>
    </div>
    <div id="row12">
      <div id="row1">
     </div>
  <br style="clear:both;" />
</div>
  <br style="clear:both;" />
</div>
</body>

</html>


On Wed, Feb 25, 2015 at 3:22 PM, Eric Covener <co...@gmail.com> wrote:
> On Wed, Feb 25, 2015 at 8:58 AM, Oliver Graute <ol...@gmail.com> wrote:
>> But if try to load index.html all I get is this:
>
>
> No errors.  What URL exactly did you request and what was the exact
> response? Using wget/curl instead of a browser may simplify this
> debugging.
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.4.12 don't serve me the index.html

Posted by Eric Covener <co...@gmail.com>.
On Wed, Feb 25, 2015 at 8:58 AM, Oliver Graute <ol...@gmail.com> wrote:
> But if try to load index.html all I get is this:


No errors.  What URL exactly did you request and what was the exact
response? Using wget/curl instead of a browser may simplify this
debugging.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.4.12 don't serve me the index.html

Posted by Oliver Graute <ol...@gmail.com>.
Hello,

I tried the AddType and AddHandler directive but with no success. I
placed them in the mime module block anc loaded the mime module.
Then I added a simple .htaccess and restartet apache2

order allow,deny
deny from 201.68.101.5
allow from all

But if try to load index.html all I get is this:

[Thu Jan 01 07:20:22.664417 1970] [authz_core:debug] [pid 490]
mod_authz_core.c(809): [client 192.168.2.99:6340] AH01626:
authorization result of Require all granted: granted
[Thu Jan 01 07:20:22.664644 1970] [authz_core:debug] [pid 490]
mod_authz_core.c(809): [client 192.168.2.99:6340] AH01626:
authorization result of <RequireAny>: granted
[Thu Jan 01 07:20:22.669855 1970] [authz_core:debug] [pid 491]
mod_authz_core.c(809): [client 192.168.2.99:6341] AH01626:
authorization result of Require all granted: granted
[Thu Jan 01 07:20:22.670085 1970] [authz_core:debug] [pid 491]
mod_authz_core.c(809): [client 192.168.2.99:6341] AH01626:
authorization result of <RequireAny>: granted

if I browse hello.php i got a succesfull page load with "hello world"
but all html files or images won't work...

/etc/apache/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 mime_module /usr/share/apache2/modules/mod_mime.so
LoadModule dir_module /usr/share/apache2/modules/mod_dir.so

<IfModule unixd_module>

User www
Group www

</IfModule>

ServerAdmin you@example.com

ServerName localhost

DocumentRoot /var/www

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

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

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>

<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
    AddType text/html .html
    AddHandler server-parsed .htmlAddType text/html .html
AddHandler server-parsed .html

</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>

On Wed, Feb 25, 2015 at 2:17 PM, Kes Wolfe <ke...@live.co.uk> wrote:
> .htaccess file in the site root directory:
>
> AddType text/html .html
> AddHandler server-parsed .html
>
>
>> Date: Wed, 25 Feb 2015 13:49:41 +0100
>> From: oliver.graute@gmail.com
>> To: users@httpd.apache.org
>> Subject: Re: [users@httpd] Apache 2.4.12 don't serve me the index.html
>
>>
>> Hello Eric,
>>
>> sorry here the full 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:51306] AH00129: Attempt to serve directory: /var/www/
>>
>> html and jpg files won't work, only php files...
>>
>> Thx
>>
>> Oliver
>>
>>
>> On Wed, Feb 25, 2015 at 1:11 PM, Eric Covener <co...@gmail.com> wrote:
>> > On Wed, Feb 25, 2015 at 2:45 AM, Oliver Graute <ol...@gmail.com>
>> > wrote:
>> >> [Tue Jan 06 19:23:09.448167 1970] [core:info] [pid 1397] [client
>> >> 192.168.2.99:51
>> >
>> >
>> > This line was incomplete in your email.
>> >
>> > --
>> > Eric Covener
>> > covener@gmail.com
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> > For additional commands, e-mail: users-help@httpd.apache.org
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Apache 2.4.12 don't serve me the index.html

Posted by Kes Wolfe <ke...@live.co.uk>.
.htaccess file in the site root directory:
AddType text/html .html AddHandler server-parsed .html

> Date: Wed, 25 Feb 2015 13:49:41 +0100
> From: oliver.graute@gmail.com
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Apache 2.4.12 don't serve me the index.html
> 
> Hello Eric,
> 
> sorry here the full 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:51306] AH00129: Attempt to serve directory: /var/www/
> 
> html and jpg files won't work,  only php files...
> 
> Thx
> 
> Oliver
> 
> 
> On Wed, Feb 25, 2015 at 1:11 PM, Eric Covener <co...@gmail.com> wrote:
> > On Wed, Feb 25, 2015 at 2:45 AM, Oliver Graute <ol...@gmail.com> wrote:
> >> [Tue Jan 06 19:23:09.448167 1970] [core:info] [pid 1397] [client 192.168.2.99:51
> >
> >
> > This line was incomplete in your email.
> >
> > --
> > Eric Covener
> > covener@gmail.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
 		 	   		  

[users@httpd] Re: Apache 2.4.12 don't serve me the index.html

Posted by Good Guy <xf...@hotmail.com>.
On 25/02/2015 13:58, Oliver Graute wrote:
> I load the dir_module and tried thas directive without sucess
>
> <IfModule dir_module>
>      DirectoryIndex index.html
> </IfModule>
>
>
>

I have got like this in my conf file:

<IfModule dir_module>
     DirectoryIndex index.php index.html
</IfModule>


However, yours should work, so something else isn't right.



Re: [users@httpd] Apache 2.4.12 don't serve me the index.html

Posted by Oliver Graute <ol...@gmail.com>.
I load the dir_module and tried thas directive without sucess

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>


On Wed, Feb 25, 2015 at 1:53 PM, Eric Covener <co...@gmail.com> wrote:
> On Wed, Feb 25, 2015 at 7:49 AM, Oliver Graute <ol...@gmail.com> wrote:
>> 192.168.2.99:51306] AH00129: Attempt to serve directory: /var/www/
>
> If you expect index.html to be served when your request a directory,
> you need DirectoryIndex.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.4.12 don't serve me the index.html

Posted by Eric Covener <co...@gmail.com>.
On Wed, Feb 25, 2015 at 7:49 AM, Oliver Graute <ol...@gmail.com> wrote:
> 192.168.2.99:51306] AH00129: Attempt to serve directory: /var/www/

If you expect index.html to be served when your request a directory,
you need DirectoryIndex.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.4.12 don't serve me the index.html

Posted by Oliver Graute <ol...@gmail.com>.
Hello Eric,

sorry here the full 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:51306] AH00129: Attempt to serve directory: /var/www/

html and jpg files won't work,  only php files...

Thx

Oliver


On Wed, Feb 25, 2015 at 1:11 PM, Eric Covener <co...@gmail.com> wrote:
> On Wed, Feb 25, 2015 at 2:45 AM, Oliver Graute <ol...@gmail.com> wrote:
>> [Tue Jan 06 19:23:09.448167 1970] [core:info] [pid 1397] [client 192.168.2.99:51
>
>
> This line was incomplete in your email.
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Apache 2.4.12 don't serve me the index.html

Posted by Eric Covener <co...@gmail.com>.
On Wed, Feb 25, 2015 at 2:45 AM, Oliver Graute <ol...@gmail.com> wrote:
> [Tue Jan 06 19:23:09.448167 1970] [core:info] [pid 1397] [client 192.168.2.99:51


This line was incomplete in your email.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Apache 2.4.12 don't serve me the index.html

Posted by Oliver Graute <ol...@gmail.com>.
I'am still struggeling with that issue that my apache 2.4.12 don't
serve me any html files. (apache 2.4.12 is self compiled and running
on a embedded arm platform)

If I request this simple index.html with

curl 127.0.0.1:80/index.html
curl: (52) Empty reply from server

I get an Empty reply

cat index.html
<html><body><h1>It works!</h1></body></html>

access_log;

192.168.2.99 - - [02/Jan/1970:02:52:52 +0100] "GET /index.html
HTTP/1.1" 200 4096
192.168.2.99 - - [02/Jan/1970:02:52:52 +0100] "GET /index.html
HTTP/1.1" 200 4096 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0)
Gecko/20100101 Firefox/36.0"

error_log:
[Fri Jan 02 02:52:15.170058 1970] [authz_core:debug] [pid 426]
mod_authz_core.c(809): [client 192.168.2.99:14643] AH01626:
authorization result of <RequireAny>: granted, referer: http://
192.168.2.1/index.php
[Fri Jan 02 02:52:52.462494 1970] [authz_core:debug] [pid 430]
mod_authz_core.c(809): [client 192.168.2.99:14644] AH01626:
authorization result of Require all granted: granted
[Fri Jan 02 02:52:52.462721 1970] [authz_core:debug] [pid 430]
mod_authz_core.c(809): [client 192.168.2.99:14644] AH01626:
authorization result of <RequireAny>: granted
[Fri Jan 02 02:53:21.934883 1970] [authz_core:debug] [pid 444]
mod_authz_core.c(809): [client 192.168.2.99:14645] AH01626:
authorization result of Require all granted: granted

so after that logs it looks fine. And if i rename my index.html to
index.php it just works

curl 127.0.0.1:80/index.php
<html><body><h1>It works!</h1></body></html>

But a simple normal index.html won't work :-(

Best regards,

Oliver

On Wed, Feb 25, 2015 at 8:45 AM, Oliver Graute <ol...@gmail.com> wrote:
> 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@example.com
>
> 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@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org