How do I get the .htaccess file to work or is it okay to run eZ without using the.htaccess file in a non virtual host environment?

Author Message

Maggie Martin

Thursday 29 May 2003 3:05:47 pm

When I upload the .htacess file via Fetch to my directory foo.com for increased security (as recommended in the installation instructions) I get two errors:

"The server cannot fulfill your request"

"the attempt to load "http://www.foo.com failed."

When I delete the file I can once again access the site.

Do I need to change the file in some way?
Is it insecure to run the site without this file in place?

the .htaccess file looks like this:

# Copy this file to a new file called .htaccess in your eZ publish root
# to make the site more secure in non-virtualhost mode (index.php used in urls).
#

<FilesMatch ".">
order allow,deny
deny from all
</FilesMatch>

<FilesMatch "(index\.php|\.(gif|jpe?g|png))$">
order allow,deny
allow from all
</FilesMatch>

RewriteEngine On
RewriteRule !\.(gif|css|jpe?g|png|js)$ index.php

DirectoryIndex index.php

_____________

I have just done a clean install of the 3.1.0 beta (though this happened with the latest 3.0 as well)

Thanks for any guidance ;-)

mikael lindqvist

Tuesday 03 June 2003 10:47:09 am

I have the same problem. I just installed ez 3.1 beta and when I rename the .htaccess_root file to .htaccess I receive following error message when trying to access the site:

Forbidden
You don't have permission to access /ezpublish/ on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

--------------------------------------------------------------------------------

Apache/1.3.27 Server at www.myportal.se Port 80

What to do?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.