DocumentRoot problem
Posted by: hugoman (---.condornet.po.gtsi.sk)
Date: November 16, 2007 09:47AM

Hello!

If i use in my .htaccess in the folder OT:

DocumentRoot "C:\wamp\www\OT"

then server throw 500 Internal Server Error. I need to develope more projekts on one server and i use one folder for each projekt. Error log:

C:/wamp/www/OT/.htaccess: DocumentRoot not allowed here

WHY?

Options: ReplyQuote
Re: DocumentRoot problem
Posted by: toivo (203.19.130.---)
Date: November 16, 2007 01:35PM

Hi,

Did you set the AllowOverride directive to allow .htaccess in that folder? Maybe your .htaccess file contains a directive which is not allowed or has incorrect syntax. If that is possible, test the syntax from the command line using:
c:\wamp\apache2\bin\httpd -t

If everything is all right, you will see the response "Syntax OK".

For more details, see [apache-server.com] or just do a search on this forum for .htaccess.

Regards,



toivo
Sydney, Australia

Options: ReplyQuote
Re: DocumentRoot problem
Posted by: hugoman (---.condornet.po.gtsi.sk)
Date: November 17, 2007 10:38AM

hm.. i dont know where is the problem... i have before this in the .htaccess an authentification... now when i insert the only one row does not work...

DocumentRoot "C:\wamp\www\OT"

( i have checked the syntax... and the server says SYNTAX OK! ) The .htaccess works without the line DocumentRoot.. with the line NO...

Anyone solutions?

Options: ReplyQuote


Sorry, only registered users may post in this forum.