httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Andersson" <>
Subject Re: [users@httpd] Apache 2.0 don`t open files in DocumentRoot
Date Fri, 08 Oct 2004 12:18:36 GMT
Juarez Jr wrote:
> <Virtualhost IPLOCAL>
>     ServerName
>     DocumentRoot /web/sys/init.php
> </Virtualhost>
> In Apache 1.3, the server works fine.
> The problem is, when I try to redirect files in DocummentRoot in
> Apache 2.0, it says that the folder does not exist.

And that is strange to you? Does a directory "/web/sys/init.php" exist? 
Probably not. As the docs says, DocumentRoot expects a directory path. If it 
worked in Apache 1.3, it is an undocumented side effect.

I suggest you do this properly:

    <VirtualHost *>
        DocumentRoot /web/sys
        <Directory /web/sys>
            DirectoryIndex init.php

Robert Andersson 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message