From: Vahis on
As I wrote earlier, I've made attempts to set up a temporary server.
My candidates for the next server are SLED, openSUSE 11.2 and 11.3.

They all do what I want except that I had a huge problem (=lack of
knowledge) in getting "friendly url:s" to work with mod_rewrite.

I found hundreds of threads allover the intertubes written by people
with the same problem.

I tried everything that I found about this subject.
No cigar.

It was advised a lot of times to edit the /etc/apache2/httpd.conf.
I knew (and I checked) that I had not edited that in my current setup.
It is also clearly stated there in the comments of that file that it
should not be edited.

I've had my openSUSE 11.0 working fine and I knew I must be able to
make another one work, too.

So I decided to find _all_ conf files that had to with Apache.

I wish I had known of a command that finds all .conf files and runs diff
on them between two machines.

Anyways: It was /etc/apache2/default-server.conf that did it.

So simple.

I can only quote, can't remember whom:

``Despite the tons of examples and docs, mod_rewrite is voodoo. Damned
cool voodoo, but still voodoo.''

The same went with the XBitHack.
It was in the same file.
I din't even remember what it was, I had to google it :)
That solved the other problem I had with includes.

This time I'll write everything down.

I just wish I had in the first place...

Vahis
--
"Sunrise 7:24am (EET), sunset 5:42pm (EET) at Espoo, FI (10:18 hours daylight)"
http://waxborg.servepics.com
Linux 2.6.25.20-0.6-default #1 SMP 2010-01-14 18:58:36 +0100 x86_64
8:27pm up 8 days 12:56, 17 users, load average: 0.08, 0.06, 0.01
From: J G Miller on
On Sun, 28 Feb 2010 18:32:18 +0000, Vahis wrote:

> Anyways: It was /etc/apache2/default-server.conf that did it.
>
> So simple.

Yes, yes, so what was the magic line in default-server.conf?
From: Vahis on
On 2010-03-01, J G Miller <miller(a)yoyo.ORG> wrote:
> On Sun, 28 Feb 2010 18:32:18 +0000, Vahis wrote:
>
>> Anyways: It was /etc/apache2/default-server.conf that did it.
>>
>> So simple.
>
> Yes, yes, so what was the magic line in default-server.conf?

To have mod_rewrite working the line:

AllowOverride None

must be changed to:

AllowOverride All

That's how I did it.
It allows the rewrite rules in .htaccess to be taken into account.

Three values are supported: All, None and FileInfo.

I din't experiment with FileInfo.

Vahis
--
"Sunrise 7:21am (EET), sunset 5:44pm (EET) at Espoo, FI (10:22 hours daylight)"
http://waxborg.servepics.com
Linux #1 SMP 2010-01-14 18:58:36 +0100 x86_64
5:06pm up 9 days 9:35, 14 users, load average: 0.01, 0.04, 0.00
From: J G Miller on
Op Maandag, 01 Maart, 2010, 15:24:05 +0000, Vahis schreef:

> To have mod_rewrite working the line:
>
> AllowOverride None
>
> must be changed to:
>
> AllowOverride All

Thanks for posting the answer.

Now if anybody else has this trouble, they may be able
to find the answer with a web search.

> It allows the rewrite rules in .htaccess to be taken into account.

Yes, as you say it is very simple when you know where to look
and what to change ;)
From: Vahis on
On 2010-03-01, J G Miller <miller(a)yoyo.ORG> wrote:
> Op Maandag, 01 Maart, 2010, 15:24:05 +0000, Vahis schreef:
>
>> To have mod_rewrite working the line:
>>
>> AllowOverride None
>>
>> must be changed to:
>>
>> AllowOverride All
>
> Thanks for posting the answer.
>
> Now if anybody else has this trouble, they may be able
> to find the answer with a web search.
>
>> It allows the rewrite rules in .htaccess to be taken into account.
>
> Yes, as you say it is very simple when you know where to look
> and what to change ;)

"What" to change is above.
And it comes up often when googling this subject.

You snipped the "where" part:

/etc/apache2/default-server.conf

"Where" was the hard part to come by.

"AllowOverride All" is comprehensive and easy to understand what it does.

But you can have them allover the place in .htaccess files without any
effect.

That's why I posted the "where" part as a solution in the first post.

Vahis
--
"Sunrise 7:21am (EET), sunset 5:44pm (EET) at Espoo, FI (10:22 hours daylight)"
http://waxborg.servepics.com
Linux #1 SMP 2010-01-14 18:58:36 +0100 x86_64
7:45pm up 9 days 12:14, 15 users, load average: 0.08, 0.22, 0.17