[BlueOnyx:00446] Re: htaccess problem

Michael Stauber mstauber at blueonyx.it
Tue Feb 3 12:23:30 -05 2009


Hi Mels,

> I'm having trouble to get .htaccess to work on a preview site.
> When I upload a '.htaccess' file I the following error for all files I try
> to access:
> "The server encountered an internal error or misconfiguration and was
> unable to complete your request. Your administrator may not have enabled
> CGI access for this directory."
>
> Is there something new I don't know about?

It's as this: .htaccess files in /web directories of a site are generally not 
allowed for security reasons. A web hosting user (a siteAdmin for example) 
could upload a .htaccess file that reconfigures Apache in a way that you - as 
server administrator - might find undesireable. 

To allow .htaccess files in general edit this file as "root":

/etc/httpd/conf.d/blueonyx.conf

Find this section:

<Directory /home/.sites/>
Options Indexes FollowSymLinks Includes MultiViews
AllowOverride AuthConfig Indexes Limit

Change the last line of it to this by adding the word "All" to it:

AllowOverride AuthConfig Indexes Limit All

Save the changes and restart Apache:

/etc/init.d/httpd restart

-- 
With best regards

Michael Stauber




More information about the Blueonyx mailing list