RE: [EMAIL PROTECTED] Rewrite does not work

2007-01-16 Thread Huesser Peter
> > Apache does not do reverse lookups on client host IPs by default. > See: > http://httpd.apache.org/docs/2.0/mod/core.html#hostnamelookups > Thanks' Pedro - The official User-To-User support forum of the Apache HTTP Ser

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-15 Thread Krist van Besien
On 1/12/07, Peter Huesser <[EMAIL PROTECTED]> wrote: > > Another thought: Did you set the directive RewritelogLevel at least to > 4? (6 = highest used). Below loglevel 4, the processing of conditions > is not being logged. > Wow, that was the break-through.Had a loglevel of 3 until now. Here the

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-12 Thread Peter Huesser
> > Another thought: Did you set the directive RewritelogLevel at least to > 4? (6 = highest used). Below loglevel 4, the processing of conditions > is not being logged. > Wow, that was the break-through.Had a loglevel of 3 until now. Here the new log entries: 129.129.194.181 - - [12/Jan/2007:10:0

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-11 Thread Bob
Peter Huesser wrote: Bob wrote: following entries in httpd.conf: RewriteEngine On RewriteCond %{REMOTE_HOST} \.domain\.ch$ RewriteRule ^/testtinfo/fea http://another.url.ch/ The produced entries in rewrite.log are: 129.129.194.181 - - [11/Jan/2007:09:40:24 +0100] [server.psi.ch/sid#80c

RE: [EMAIL PROTECTED] Rewrite does not work

2007-01-11 Thread Huesser Peter
> > Is there a .htaccess file somehwere in your mailmain install? If so, > have a look in there... > No. Pedro - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslis

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-11 Thread Krist van Besien
On 1/11/07, Peter Huesser <[EMAIL PROTECTED]> wrote: > What might also be an issue here is that reverse DNS doesn't work > properly. > > However, what you are trying to achieve might be better done > differently. See another post in this forum. You ought to set up two > virtual hosts, one on po

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-11 Thread Peter Huesser
Bob wrote: >> following entries in httpd.conf: >> >> RewriteEngine On >> RewriteCond %{REMOTE_HOST} \.domain\.ch$ >> RewriteRule ^/testtinfo/fea http://another.url.ch/ >> >> The produced entries in rewrite.log are: >> >> 129.129.194.181 - - [11/Jan/2007:09:40:24 +0100] >> [server.psi.ch/sid#

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-11 Thread Bob
Peter Huesser wrote: following entries in httpd.conf: RewriteEngine On RewriteCond %{REMOTE_HOST} \.domain\.ch$ RewriteRule ^/testtinfo/fea http://another.url.ch/ The produced entries in rewrite.log are: 129.129.194.181 - - [11/Jan/2007:09:40:24 +0100] [server.psi.ch/sid#80c1cc8][rid#814

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-11 Thread Peter Huesser
> What might also be an issue here is that reverse DNS doesn't work > properly. > > However, what you are trying to achieve might be better done > differently. See another post in this forum. You ought to set up two > virtual hosts, one on port 80 and one on port 443. Have a redirect to > the htt

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-10 Thread Krist van Besien
On 1/9/07, Bob <[EMAIL PROTECTED]> wrote: Huesser Peter wrote: > My interpretation of "RewriteCond > %{REMOTE_HOST} \.domain\.ch$" is the following: If the client that makes > the https request is within the "domain.ch" than apply the following > RewriteRule. Yes, this will cause a reverse DNS l

RE: [EMAIL PROTECTED] Rewrite does not work

2007-01-09 Thread Huesser Peter
> > Usually not in server context, mod_rewrite acts before the mapping to > filesystem occurs. You said that the rewrite log is completely empty, > when you request /testtinfo/fea? That would mean the rules are not seen > at all, e.g. a matched and the rules are defined in the > main server confi

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-09 Thread Bob
Huesser Peter wrote: Yes, this will cause a reverse DNS lookup of remote_addr. But anyway, I think your order is incorrect. If your request comes through port 80, the 2nd rule won't have any effect, because your first rule matched already. RewriteEngine On RewriteCond %{REMOTE_HOST} \.domain\.

RE: [EMAIL PROTECTED] Rewrite does not work

2007-01-09 Thread Huesser Peter
> > Yes, this will cause a reverse DNS lookup of remote_addr. But anyway, I > think your order is incorrect. If your request comes through port 80, > the 2nd rule won't have any effect, because your first rule matched > already. > > RewriteEngine On > RewriteCond %{REMOTE_HOST} \.domain\.ch$ > Re

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-09 Thread Bob
Huesser Peter wrote: My interpretation of "RewriteCond %{REMOTE_HOST} \.domain\.ch$" is the following: If the client that makes the https request is within the "domain.ch" than apply the following RewriteRule. Yes, this will cause a reverse DNS lookup of remote_addr. But anyway, I think your o

RE: [EMAIL PROTECTED] Rewrite does not work

2007-01-09 Thread Huesser Peter
> > What are you seeing in your rewrite log? (If you don't have a rewrite > log, switch it on now, and set debugging to a sufficiently high > level). > Thanks for your answer. I turned it on and see nothing in the rewrite.log file for the second RewriteCond (the first works fine and produces seve

Re: [EMAIL PROTECTED] Rewrite does not work

2007-01-08 Thread Krist van Besien
On 1/8/07, Huesser Peter <[EMAIL PROTECTED]> wrote: I have a problem with a rewrite. In my httpd.conf I use the following lines: ScriptAlias /test/ /var/test/cgi-bin/ Alias /pipermail/ /var/test/archives/public/ Options +FollowSymlinks RewriteEngine On RewriteCond %{SERVER_P