Project

General

Profile

Actions

Bug #16971

closed

.htacces in sysext fails in some apache configuration

Added by Ingo Schmitt over 17 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Should have
Category:
Install Tool
Target version:
-
Start date:
2007-02-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The default .htacces in the sysext folder cases an error in apache if no overwrite is set in apache configuration. To deny the overwrite in your httpd.conf is common to have a more secure environement.

Error in apche log:
/www/typo3/sysext/.htaccess: ExpiresActive not allowed here

Maybe remove the .htacces and add to installation howto to add those files
(issue imported from #M4962)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #19565: Ship optimal TYPO3 configuration by defaultClosedChristian Kuhn2008-11-04

Actions
Actions #1

Updated by Ingo Schmitt over 17 years ago

Also .htaccess in typo3/

Actions #2

Updated by Thomas Hempel over 17 years ago

The .htaccess file is not enabled by default (_.htaccess) , isn't it?

So I don't see a need to do something here.

Greets,
Thomas

Actions #3

Updated by Michael Stucki over 17 years ago

Hi Dmitry, I think especially you should have a close look at this... ;-)

Actions #5

Updated by Dmitry Dulepov over 17 years ago

I will look what we can do...

By the way, I cannot find .htaccess in typo3 folder.

Actions #6

Updated by Ingo Schmitt over 17 years ago

In the current svn there is an .htacc in th sysext folder, but non in the typo3 folder

Actions #7

Updated by Dmitry Dulepov over 17 years ago

Current files require "AllowOverride Indexes" for caching to work. This gives huge performance improvments and lowers traffic a lot. The question is what we do:
- release typo3 as before, in unoptimal configuration (with renamed .htaccess)
or
- release with optimal configuration (with .htaccess) and make a note about renaming or configuring Apache

So far I did not see complains in mailing lists about .htaccess.

I understand that some virtual hosts may disallow mod_expires but typo3 is not Mambo, it is generally used in more serious environments and enabling Indexes is not a problem. Personally I see no reasons to release unoptimal configuration...

Actions #8

Updated by Ingo Schmitt over 17 years ago

Both solutions would be finde for me.

Actions #9

Updated by Dmitry Dulepov over 17 years ago

Michael, your choice?

Actions #10

Updated by Michael Stucki over 17 years ago

Dmitry, would it be possible to put this into a condition?

<IfModule expires.c>
...
</IfModule>

Unchecked, though!

As long as the default configuration can block an installation, I see this as a no-go. However, if you can tweak .htaccess so that Ingos default-setup doesn't trigger an error, then go ahead.

- michael

Actions #11

Updated by Ingo Schmitt over 17 years ago

The condition won't work, as, for example in our case, it only checks if the module is existing, not if it's allowed to change the directory setting.

Actions #12

Updated by Dmitry Dulepov over 17 years ago

<IfModule> is there, it does not help. And there is no check for AllowOverride in Apache. So, if it is "no-go", we have to ship typo3 in non-optimal configuration. This is bad... :(

Actions #13

Updated by Ingo Schmitt over 17 years ago

Just add an smal text to the installation guide, this would be perfect !

Actions #14

Updated by Dmitry Dulepov over 17 years ago

Michael, may be we just go with a note? I really think it is bad to go without this performance increase. Most people, who install typo3, will have control over their servers. Others can do manual rename.

It is not difficult to me to rename those ".htaccess"es in svn, I simply think that it is impractical. Imagine that Ferrari/Formula-1 engineers care about people, who want to drive Ferraries over country roads. Not bad but totally impractical...

Actions #15

Updated by Ingmar Schlecht over 17 years ago

Hi guys,

I actually think we should rename the files to _.htaccess, because a TYPO3 installations that works at all, is IMHO a very important point for people not to give up using TYPO3 in the very beginning.

We can easily put a note about this in the installation guides.

Dmitry, what do you think? Would be great if you could rename them in SVN.

cheers
Ingmar

Actions #16

Updated by Dmitry Dulepov over 17 years ago

Ok. I will remove those performance enhancements if you wish... Let it be so.

Actions #17

Updated by Dmitry Dulepov over 17 years ago

Renamed .htaccess files, corrected NEWS.txt

Actions #18

Updated by Michael Stucki over 17 years ago

Thanks Dmitry.

Actions

Also available in: Atom PDF