httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <yeh...@ymkatz.net>
Subject Re: [users@httpd] checking my httpd.conf
Date Tue, 14 Feb 2012 17:54:45 GMT
On Tue, Feb 14, 2012 at 12:47 PM, Yehuda Katz <yehuda@ymkatz.net> wrote:

> On Tue, Feb 14, 2012 at 12:44 PM, florent larose <
> florent.larose@hotmail.com> wrote:
>
>>  Well,
>> I try to check my httpd.conf file with the command:
>> Apache -t
>> Now i obtain the following error message :
>> "syntax error on line 961 of
>> c:\wamp\bin\apache\apache2.0.63\conf\httpd.conf -- it is my httpd.conf path
>> : DocumentRoot takes one argument, Root directory of the document tree"
>>
>> What does it mean ? what must I do ?
>> Thanks for your help.
>>
>
> What does that line in httpd.conf actually say? (Hint: use a program like
> Notepad++ that has a Go-To-Line-Number___ feature.)
>
> If I had to guess, your DocumentRoot has a space in it, so you need to
> make sure the whole thing is in quotes.
>

Forget the guess, my anti-virus had removed your original attachment
because it had a "Unknown Type".
Usually on Windows, you convert the backslashes to forward slashes and put
the whole thing in quotes:

<VirtualHost 127.0.0.1>
>     ServerName quickstart.local
> DocumentRoot "C:/Program Files/Zend/ZendFramework-1.11.11/quick/public"
>  SetEnv APPLICATION_ENV "development"
> <Directory  "C:/Program Files/Zend/ZendFramework-1.11.11/quick/public" >
> DirectoryIndex index.php
>  AllowOverride All
> Order allow, deny
> Allow from All
>  </Directory>
> </VirtualHost>

Mime
View raw message