<IfModule mod_rewrite.c> issue in debian lenny.

Hello list,

Here in debian lenny the rewrite rules are working well. I have checked
by this .htaccess and successful

````````````````````
DirectoryIndex index.php
RewriteEngine On

#RewriteRule ^typo3$ - [L]
#RewriteRule ^typo3/.*$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
```````````````


Now I like to place the rewrite stuff in apache configuration so that I
don't need to place .htaccess for all the sites. and here is the config
I have placed in apache

```````````````````````
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
# .htaccess slows down apache; only use it when required #
AllowOverride All
Order allow,deny
allow from all

### Begin: Rewrite stuff for typo3 ###
<IfModule mod_rewrite.c>

# Enable URL rewriting
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php [L]
</IfModule>
</Directory>

````````````````````````````````

restart apache and remove the .htaccess from webroot directory of the
site. the rewite stuff is not working now !!! Is it a problem with
<IfModule mod_rewrite.c> which is not recognized here in lenny ? Does
anyone have any idea or faced the same problem.

BTW: The above config running fine with opensuse 11.2

Thanks

--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
joydeep [ Do, 04 März 2010 06:42 ] [ ID #2034027 ]

Re: <IfModule mod_rewrite.c> issue in debian lenny.

--001636283722bb41c60480f3762b
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 4, 2010 at 11:12 AM, J. Bakshi <joydeep [at] infoservices.in> wrote:

> Hello list,
>
> Here in debian lenny the rewrite rules are working well. I have checked
> by this .htaccess and successful
>
> ````````````````````
> DirectoryIndex index.php
> RewriteEngine On
>
> #RewriteRule ^typo3$ - [L]
> #RewriteRule ^typo3/.*$ - [L]
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
> RewriteRule .* index.php
> ```````````````
>
>
> Now I like to place the rewrite stuff in apache configuration so that I
> don't need to place .htaccess for all the sites. and here is the config
> I have placed in apache
>
> ```````````````````````
> <Directory /var/www/>
> Options Indexes FollowSymLinks MultiViews
> # .htaccess slows down apache; only use it when required #
> AllowOverride All
> Order allow,deny
> allow from all
>
> ### Begin: Rewrite stuff for typo3 ###
> <IfModule mod_rewrite.c>
>
> # Enable URL rewriting
> RewriteEngine On
> RewriteBase /
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
>
> RewriteRule .* index.php [L]
> </IfModule>
> </Directory>
>
> ````````````````````````````````
>
> restart apache and remove the .htaccess from webroot directory of the
> site. the rewite stuff is not working now !!! Is it a problem with
> <IfModule mod_rewrite.c> which is not recognized here in lenny ? Does
> anyone have any idea or faced the same problem.
>
> BTW: The above config running fine with opensuse 11.2
>
> Thanks
>
> --
> =E0=A6=9C=E0=A7=9F=E0=A6=A6=E0=A7=80=E0=A6=AA =E0=A6=AC=E0=A6=95=E0=A7=8D=
=E0=A6=B8=E0=A7=80
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
> " from the digest: users-digest-unsubscribe [at] httpd.apache.org
> For additional commands, e-mail: users-help [at] httpd.apache.org
>
>
I think you should be using rewrite_module.c instead of mod_rewrite.c

--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com

--001636283722bb41c60480f3762b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote">On Thu, Mar 4, 2010 at 11:12 AM, J. Bakshi <span=
dir=3D"ltr"><<a href=3D"mailto:joydeep [at] infoservices.in">joydeep [at] infoser=
vices.in</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); p=
adding-left: 1ex;">

Hello list,<br>
<br>
Here in debian lenny the rewrite rules are working well. I have checked<br>
by this .htaccess and successful<br>
<br>
````````````````````<br>
DirectoryIndex index.php<br>
RewriteEngine On<br>
<br>
#RewriteRule ^typo3$ - [L]<br>
#RewriteRule ^typo3/.*$ - [L]<br>
<br>
RewriteCond %{REQUEST_FILENAME} !-f<br>
RewriteCond %{REQUEST_FILENAME} !-d<br>
RewriteCond %{REQUEST_FILENAME} !-l<br>
RewriteRule .* index.php<br>
```````````````<br>
<br>
<br>
Now I like to place the rewrite stuff in apache configuration so that I<br>
don't need to place .htaccess for all the sites. and here is the config=
<br>
I have placed in apache<br>
<br>
```````````````````````<br>
<Directory /var/www/><br>
Options Indexes FollowSymLinks MultiViews<br>
# .htaccess slows down apache; only use it when required #<br>
AllowOverride All<br>
Order allow,deny<br>
allow from all<br>
<br>
### Begin: Rewrite stuff for typo3 ###<br>
<IfModule mod_rewrite.c><br>
<br>
# Enable URL rewriting<br>
RewriteEngine On<br>
RewriteBase /<br>
<br>
RewriteCond %{REQUEST_FILENAME} !-f<br>
RewriteCond %{REQUEST_FILENAME} !-d<br>
RewriteCond %{REQUEST_FILENAME} !-l<br>
<br>
RewriteRule .* index.php [L]<br>
</IfModule><br>
</Directory><br>
<br>
````````````````````````````````<br>
<br>
restart apache and remove the .htaccess from webroot directory of the<br>
site. the rewite stuff is not working now !!! Is it a problem with<br>
<IfModule mod_rewrite.c> which is not recognized here in lenny ? Does=
<br>
anyone have any idea or faced the same problem.<br>
<br>
BTW: The above config running fine with opensuse 11.2<br>
<br>
Thanks<br>
<br>
--<br>
=E0=A6=9C=E0=A7=9F=E0=A6=A6=E0=A7=80=E0=A6=AA =E0=A6=AC=E0=A6=95=E0=A7=8D=
=E0=A6=B8=E0=A7=80<br>
<br>
<br>
------------------------------------------------------------ ---------<br>
The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:<a href=3D"http://httpd.apache.org/userslist.html" target=3D"_b=
lank">http://httpd.apache.org/userslist.html</a>> for more info.<br>
To unsubscribe, e-mail: <a href=3D"mailto:users-unsubscribe [at] httpd.apache.or=
g">users-unsubscribe [at] httpd.apache.org</a><br>
=C2=A0 " =C2=A0 from the digest: <a href=3D"mailto:users-digest-unsub=
scribe [at] httpd.apache.org">users-digest-unsubscribe [at] httpd.apac he.org</a><br>
For additional commands, e-mail: <a href=3D"mailto:users-help [at] httpd.apache.=
org">users-help [at] httpd.apache.org</a><br>
<br>
</blockquote></div><br>I think you should be using rewrite_module.c instead=
of mod_rewrite.c<br clear=3D"all"><br>-- <br>Nilesh Govindarajan<br>Site &=
amp; Server Administrator<br><a href=3D"http://www.itech7.com">www.itech7.c=
om</a><br>

<br>

--001636283722bb41c60480f3762b--
Nilesh Govindrajan [ Do, 04 März 2010 07:10 ] [ ID #2034028 ]

Re: <IfModule mod_rewrite.c> issue in debian lenny.

On 03/04/2010 11:40 AM, Nilesh Govindarajan wrote:
> On Thu, Mar 4, 2010 at 11:12 AM, J. Bakshi <joydeep [at] infoservices.in
> <mailto:joydeep [at] infoservices.in>> wrote:
>
> Hello list,
>
> Here in debian lenny the rewrite rules are working well. I have
> checked
> by this .htaccess and successful
>
> ````````````````````
> DirectoryIndex index.php
> RewriteEngine On
>
> #RewriteRule ^typo3$ - [L]
> #RewriteRule ^typo3/.*$ - [L]
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
> RewriteRule .* index.php
> ```````````````
>
>
> Now I like to place the rewrite stuff in apache configuration so
> that I
> don't need to place .htaccess for all the sites. and here is the
> config
> I have placed in apache
>
> ```````````````````````
> <Directory /var/www/>
> Options Indexes FollowSymLinks MultiViews
> # .htaccess slows down apache; only use it when required #
> AllowOverride All
> Order allow,deny
> allow from all
>
> ### Begin: Rewrite stuff for typo3 ###
> <IfModule mod_rewrite.c>
>
> # Enable URL rewriting
> RewriteEngine On
> RewriteBase /
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
>
> RewriteRule .* index.php [L]
> </IfModule>
> </Directory>
>
> ````````````````````````````````
>
> restart apache and remove the .htaccess from webroot directory of the
> site. the rewite stuff is not working now !!! Is it a problem with
> <IfModule mod_rewrite.c> which is not recognized here in lenny ? Does
> anyone have any idea or faced the same problem.
>
> BTW: The above config running fine with opensuse 11.2
>
> Thanks
>
> --
> জয়দীপ বক্সী
>
>
>
>
> I think you should be using rewrite_module.c instead of mod_rewrite.c
>
>

Checked by <IfModule rewrite_module.c> but no luck. How can I check
the correct module in my server ?

Thanks


--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
joydeep [ Do, 04 März 2010 08:15 ] [ ID #2034030 ]

Re: <IfModule mod_rewrite.c> issue in debian lenny.

--000e0cd487ce720cc60480f5f808
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

See the name of the module in the LoadModule line in the config file

On Mar 4, 2010 6:16 PM, "J. Bakshi" <joydeep [at] infoservices.in> wrote:

On 03/04/2010 11:40 AM, Nilesh Govindarajan wrote: > On Thu, Mar 4, 2010 at
11:12 AM, J. Bakshi <joy...

> <mailto:joydeep [at] infoservices.in>> wrote: > > Hello list, > > Here in
debian lenny the rewr...

> I think you should be using rewrite_module.c instead of mod_rewrite.c > >
Checked by <IfModule rewrite_module.c> but no luck. How can I check
the correct module in my server ?

Thanks -- =E0=A6=9C=E0=A7=9F=E0=A6=A6=E0=A7=80=E0=A6=AA =E0=A6=AC=E0=A6=95=
=E0=A7=8D=E0=A6=B8=E0=A7=80
------------------------------------------------------------ --------- Th...

--000e0cd487ce720cc60480f5f808
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<p>See the name of the module in the LoadModule line in the config file</p>
<p><blockquote type=3D"cite">On Mar 4, 2010 6:16 PM, "J. Bakshi" =
<<a href=3D"mailto:joydeep [at] infoservices.in">joydeep [at] infoservices.in</a>&=
gt; wrote:<br><br><p><font color=3D"#500050">On 03/04/2010 11:40 AM, Nilesh=
Govindarajan wrote:
> On Thu, Mar 4, 2010 at 11:12 AM, J. Bakshi <joy...</font></p><p><fo=
nt color=3D"#500050">> <mailto:<a href=3D"mailto:joydeep [at] infoservices=
..in">joydeep [at] infoservices.in</a>>> wrote:
>
> Hello list,
>
> Here in debian lenny the rewr...</font></p><p><font color=3D"#5000=
50">> I think you should be using rewrite_module.c instead of mod_rewrit=
e.c
>
>

</font></p>Checked by =C2=A0<IfModule rewrite_module.c> but no luck. =
=C2=A0How can I check<br>
the correct module in my server ?<br>
<p><font color=3D"#500050">
Thanks


--
=E0=A6=9C=E0=A7=9F=E0=A6=A6=E0=A7=80=E0=A6=AA =E0=A6=AC=E0=A6=95=E0=A7=8D=
=E0=A6=B8=E0=A7=80


------------------------------------------------------------ ---------
Th...</font></p></blockquote></p>

--000e0cd487ce720cc60480f5f808--
Igor Cicimov [ Do, 04 März 2010 10:10 ] [ ID #2034031 ]

Re: <IfModule mod_rewrite.c> issue in debian lenny.

--001485eba7c265ff450480f82f7f
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 4, 2010 at 2:40 PM, Igor Cicimov <icicimov [at] gmail.com> wrote:

> See the name of the module in the LoadModule line in the config file
>
> On Mar 4, 2010 6:16 PM, "J. Bakshi" <joydeep [at] infoservices.in> wrote:
>
> On 03/04/2010 11:40 AM, Nilesh Govindarajan wrote: > On Thu, Mar 4, 2010 =
at
> 11:12 AM, J. Bakshi <joy...
>
> > <mailto:joydeep [at] infoservices.in>> wrote: > > Hello list, > > Here in
> debian lenny the rewr...
>
> > I think you should be using rewrite_module.c instead of mod_rewrite.c >=
>
>
> Checked by <IfModule rewrite_module.c> but no luck. How can I check
> the correct module in my server ?
>
> Thanks -- =E0=A6=9C=E0=A7=9F=E0=A6=A6=E0=A7=80=E0=A6=AA =E0=A6=AC=E0=A6=
=95=E0=A7=8D=E0=A6=B8=E0=A7=80
> ------------------------------------------------------------ --------- Th.=
...
>
>
Or do apachectl -M

--
Nilesh Govindarajan
Site & Server Administrator
www.itech7.com

--001485eba7c265ff450480f82f7f
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote">On Thu, Mar 4, 2010 at 2:40 PM, Igor Cicimov <sp=
an dir=3D"ltr"><<a href=3D"mailto:icicimov [at] gmail.com">icicimov [at] gmail.com=
</a>></span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin=
: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-lef=
t: 1ex;">

<p>See the name of the module in the LoadModule line in the config file</p>
<p></p><blockquote type=3D"cite">On Mar 4, 2010 6:16 PM, "J. Bakshi&qu=
ot; <<a href=3D"mailto:joydeep [at] infoservices.in" target=3D"_blank">joydee=
p [at] infoservices.in</a>> wrote:<br><br><p><font color=3D"#500050">On 03/04=
/2010 11:40 AM, Nilesh Govindarajan wrote:
> On Thu, Mar 4, 2010 at 11:12 AM, J. Bakshi <joy...</font></p><p><fo=
nt color=3D"#500050">> <mailto:<a href=3D"mailto:joydeep [at] infoservices=
..in" target=3D"_blank">joydeep [at] infoservices.in</a>>> wrote:
>
> Hello list,
>
> Here in debian lenny the rewr...</font></p><div class=3D"im"><p><f=
ont color=3D"#500050">> I think you should be using rewrite_module.c ins=
tead of mod_rewrite.c
>
>

</font></p>Checked by =C2=A0<IfModule rewrite_module.c> but no luck. =
=C2=A0How can I check<br>
the correct module in my server ?<br>
</div><p><font color=3D"#500050">
Thanks


--
=E0=A6=9C=E0=A7=9F=E0=A6=A6=E0=A7=80=E0=A6=AA =E0=A6=AC=E0=A6=95=E0=A7=8D=
=E0=A6=B8=E0=A7=80


------------------------------------------------------------ ---------
Th...</font></p></blockquote>
</blockquote></div><br>Or do apachectl -M<br clear=3D"all"><br>-- <br>Niles=
h Govindarajan<br>Site & Server Administrator<br><a href=3D"http://www.=
itech7.com">www.itech7.com</a><br><br>

--001485eba7c265ff450480f82f7f--
Nilesh Govindrajan [ Do, 04 März 2010 12:48 ] [ ID #2034033 ]

Re: <IfModule mod_rewrite.c> issue in debian lenny.

Or just don't use <IfModule> in your own configuration. The only real
reason to use it is in example configurations for other people, where
you don't know if a given module has been loaded.

If you're configuring your own server, presumably you intend for that
module to be loaded. Better to have the server fail to start if you've
left out the LoadModule than appear to be working but completely
ignoring all the configuration inside <IfModule>.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Dan Poirier [ Do, 04 März 2010 13:23 ] [ ID #2034035 ]

Re: <IfModule mod_rewrite.c> issue in debian lenny.

On 03/04/2010 05:18 PM, Nilesh Govindarajan wrote:
> On Thu, Mar 4, 2010 at 2:40 PM, Igor Cicimov <icicimov [at] gmail.com
> <mailto:icicimov [at] gmail.com>> wrote:
>
> See the name of the module in the LoadModule line in the config file
>
>> On Mar 4, 2010 6:16 PM, "J. Bakshi" <joydeep [at] infoservices.in
>> <mailto:joydeep [at] infoservices.in>> wrote:
>>
>> On 03/04/2010 11:40 AM, Nilesh Govindarajan wrote: > On Thu, Mar
>> 4, 2010 at 11:12 AM, J. Bakshi <joy...
>>
>> > <mailto:joydeep [at] infoservices.in
>> <mailto:joydeep [at] infoservices.in>>> wrote: > > Hello list, > >
>> Here in debian lenny the rewr...
>>
>> > I think you should be using rewrite_module.c instead of
>> mod_rewrite.c > >
>>
>> Checked by <IfModule rewrite_module.c> but no luck. How can I check
>> the correct module in my server ?
>>
>>
>
> Or do apachectl -M
>


Great..great. Now it is providing a clear view.

# apache2ctl - M shows here

[.......]
negotiation_module (shared)
php5_module (shared)
rewrite_module (shared)
setenvif_module (shared)
[.....]

So, it is rewrite_module. Unfortunately here the rewrite stuff still
not working with and with out <IfModule> part. Please tell me if some
one needs any more info.

Thanks

--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
joydeep [ Fr, 05 März 2010 06:03 ] [ ID #2034106 ]

Re: <IfModule mod_rewrite.c> issue in debian lenny.

On 03/04/2010 05:53 PM, Dan Poirier wrote:
> Or just don't use <IfModule> in your own configuration. The only real
> reason to use it is in example configurations for other people, where
> you don't know if a given module has been loaded.
>
> If you're configuring your own server, presumably you intend for that
> module to be loaded. Better to have the server fail to start if you've
> left out the LoadModule than appear to be working but completely
> ignoring all the configuration inside <IfModule>.
>
>

Thanks Dan,

But I have faced problem in debian where it does not sense the
configuration if it is not under <IfModule>. Otherwise I would be happy
to configure without <IfModule>.

cheers.

--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
joydeep [ Fr, 05 März 2010 06:15 ] [ ID #2034107 ]

Re: <IfModule mod_rewrite.c> issue in debian lenny.

> On 03/04/2010 05:53 PM, Dan Poirier wrote:
> > Or just don't use <IfModule> in your own configuration. The only real
> > reason to use it is in example configurations for other people, where
> > you don't know if a given module has been loaded.
> >
> > If you're configuring your own server, presumably you intend for that
> > module to be loaded. Better to have the server fail to start if you've
> > left out the LoadModule than appear to be working but completely
> > ignoring all the configuration inside <IfModule>.

On 05.03.10 10:45, J. Bakshi wrote:
> But I have faced problem in debian where it does not sense the
> configuration if it is not under <IfModule>. Otherwise I would be happy
> to configure without <IfModule>.

What?

If the directive is not in <IfModule>, it's always used. The <IfModule>
causes it be used only if the specified module is loaded.

It means, that if you use a directive without <IfModule> and the module is
not loaded, apache reports an error in config file.

The fscking complicated <IfModule> syntax used in some SW distributions are
Pain-In-The-Ass. Unless you want only some small changes, it's always better
to create own apache's config. Yes, it's not that easy to maintain from the
distributions' point of view (automatically), but it's MUCH easier to
understand and maintain manually.

playing with <IfModule> is especially hard with things like DirectoryIndex.
iirc RedHat tried to add directives like AddDirectoryIndex and
ClearDirectoryIndex but without big success here.

--
Matus UHLAR - fantomas, uhlar [at] fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Silvester Stallone: Father of the RISC concept.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd.apache.org
" from the digest: users-digest-unsubscribe [at] httpd.apache.org
For additional commands, e-mail: users-help [at] httpd.apache.org
Matus UHLAR - fantoma [ Di, 09 März 2010 13:03 ] [ ID #2034422 ]
Webserver » gmane.comp.apache.user » <IfModule mod_rewrite.c> issue in debian lenny.

Vorheriges Thema: Re: how to set a connection timeout for the AJP
Nächstes Thema: Load balancing issue.