Re: [EMAIL PROTECTED] mod_rewrite problem

2007-08-04 Thread Joshua Slive
On 8/4/07, Yves Goergen <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using mod_rewrite to correct some URLs on my web server, running > Apache 2.0. But I have a strange problem with it. First, here's the > rules I have set: > > SetEnvIf Host .+ desired_hostname=beta.unclassified.de > SetEnvI

[EMAIL PROTECTED] mod_rewrite problem

2007-08-04 Thread Yves Goergen
Hello, I'm using mod_rewrite to correct some URLs on my web server, running Apache 2.0. But I have a strange problem with it. First, here's the rules I have set: SetEnvIf Host .+ desired_hostname=beta.unclassified.de SetEnvIfNoCase Host ^beta\.unclassified\.de$ !desired_hostname Rewr

Re: [EMAIL PROTECTED] mod_rewrite - First letter

2007-08-01 Thread Vincent Bray
On 02/08/07, Admin - SDAKAR WEB <[EMAIL PROTECTED]> wrote: > Hello, > Can I get first letter from %1? Thanks. You can probably use a RewriteMap for this, but you'd be better off just capturing the first letter in your RewriteCond, like: RewriteCond %{HTTP_HOST} ^(.).* RewriteRule /foo /bar O

[EMAIL PROTECTED] mod_rewrite - First letter

2007-08-01 Thread Admin - SDAKAR WEB
Hello, Can I get first letter from %1? Thanks. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [EMAIL PROTECTED] mod_rewrite in .htaccess but without allowing to set the ErrorDocument

2007-07-30 Thread Joshua Slive
On 7/30/07, Samuel Vogel <[EMAIL PROTECTED]> wrote: > Well, we earn our money with the error pages. > But we would still like to allow mod_rewrite. If somebody is clever > enough to replicate the ErrorDocument directive with mod_rewrite it > would be very complicated... > So is there no way to "loc

Re: [EMAIL PROTECTED] mod_rewrite in .htaccess but without allowing to set the ErrorDocument

2007-07-30 Thread Samuel Vogel
Well, we earn our money with the error pages. But we would still like to allow mod_rewrite. If somebody is clever enough to replicate the ErrorDocument directive with mod_rewrite it would be very complicated... So is there no way to "lock" the Error Pages, oder allow mod_rewrite without "AllowO

Re: [EMAIL PROTECTED] mod_rewrite in .htaccess but without allowing to set the ErrorDocument

2007-07-30 Thread Joshua Slive
On 7/30/07, Samuel Vogel <[EMAIL PROTECTED]> wrote: > Hey Apache Guys, > > Is there any way that I can allow my users to use mod_rewrite without > allowing them to set their own ErrorDocument? > AllowOverride FileInfo is allows both of them. Can I somehow get a finer > grained control over this? >

[EMAIL PROTECTED] mod_rewrite in .htaccess but without allowing to set the ErrorDocument

2007-07-30 Thread Samuel Vogel
Hey Apache Guys, Is there any way that I can allow my users to use mod_rewrite without allowing them to set their own ErrorDocument? AllowOverride FileInfo is allows both of them. Can I somehow get a finer grained control over this? Can I disable setting ErrorDocument while allowing mod_rewrit

Re: [EMAIL PROTECTED] mod_rewrite, mod_proxy and content-length

2007-07-25 Thread Daniel JavaDev
Nick, works out the header was actually being added by protocol.c (in ap_set_content_length) I've fixed it for what I needed by simply commenting out the body of that method. This keeps the EAIF MMSC happy and this httpd instance will only be used for this purpose anyway. Not sure what the best

Re: [EMAIL PROTECTED] mod_rewrite, mod_proxy and content-length

2007-07-25 Thread Nick Kew
On Wed, 25 Jul 2007 10:59:33 +0100 "Daniel JavaDev" <[EMAIL PROTECTED]> wrote: > Unfortunately it's not my client, but Nokia's EAIF MMSC (emulator in > this case). > > Like I said, I've coded my application to the protocol (EAIF) and it > works. I only need to add apache httpd in between in order

Re: [EMAIL PROTECTED] mod_rewrite, mod_proxy and content-length

2007-07-25 Thread Vincent Bray
On 25/07/07, Daniel JavaDev <[EMAIL PROTECTED]> wrote: Unfortunately it's not my client, but Nokia's EAIF MMSC (emulator in this case). Like I said, I've coded my application to the protocol (EAIF) and it works. I only need to add apache httpd in between in order to restrict access to the applic

Re: [EMAIL PROTECTED] mod_rewrite, mod_proxy and content-length

2007-07-25 Thread Daniel JavaDev
Unfortunately it's not my client, but Nokia's EAIF MMSC (emulator in this case). Like I said, I've coded my application to the protocol (EAIF) and it works. I only need to add apache httpd in between in order to restrict access to the application (by IP address range). The response headers witho

Re: [EMAIL PROTECTED] mod_rewrite, mod_proxy and content-length

2007-07-24 Thread Vincent Bray
On 25/07/07, Daniel JavaDev <[EMAIL PROTECTED]> wrote: Hi all, I have the following rules on my apache 2.2.4 config: RewriteEngine on RewriteRule ^/someURL http://anotherURL [P] where someURL is the a publicly available url, and anotherURL is a private url (localhost on another port). This set

[EMAIL PROTECTED] mod_rewrite, mod_proxy and content-length

2007-07-24 Thread Daniel JavaDev
Hi all, I have the following rules on my apache 2.2.4 config: RewriteEngine on RewriteRule ^/someURL http://anotherURL [P] where someURL is the a publicly available url, and anotherURL is a private url (localhost on another port). This setup is for restricting access to an application server.

Re: [EMAIL PROTECTED] mod_rewrite help

2007-07-14 Thread Jeff Murch
Thanks for the quick reply Joshua. It is a link. The problem is that I do not have access to the server or the source. The website is written in DEC basic compiled as CGI executables on a VMS box. I've tried the ProxyPreserveHost on and off with no difference. I am running mod_proxy_html so I

Re: [EMAIL PROTECTED] mod_rewrite help

2007-07-14 Thread Joshua Slive
On 7/14/07, Jeff Murch <[EMAIL PROTECTED]> wrote: I am running into a problem with a reverse proxy where dynamic links to detail records are showing up referring to the main webserver on a 10 network instead of the NAT'd public address of the proxy. An example would be a link showing up fr

[EMAIL PROTECTED] mod_rewrite help

2007-07-14 Thread Jeff Murch
I am running into a problem with a reverse proxy where dynamic links to detail records are showing up referring to the main webserver on a 10 network instead of the NAT'd public address of the proxy. An example would be a link showing up from the proxy to the end user's browser as http://10.2.1

Re: [EMAIL PROTECTED] mod_rewrite in .htaccess does not work

2007-07-09 Thread Vincent Bray
On 09/07/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: good day Hi i'm trying to install some php cms system on my hompage's host machine. there's a index file that is supposed to parse the path after index, e.g. index/login, do the magic and render the login page. now apparently the .htac

[EMAIL PROTECTED] mod_rewrite in .htaccess does not work

2007-07-08 Thread mailings
good day i'm trying to install some php cms system on my hompage's host machine. there's a index file that is supposed to parse the path after index, e.g. index/login, do the magic and render the login page. now apparently the .htaccess file isn't properly followed and apache actually tri

Re: [EMAIL PROTECTED] mod_rewrite, proxys, authorization and redirects

2007-06-29 Thread Martijn
Hello again. (The original discussion, which I think is not necessary for understanding the below, can be found here: http://www.gossamer-threads.com/lists/apache/users/332651 - also, we're talking Apache 2.0.58 here.) After a lot of testing and debugging I have found that when one uses RewriteR

Re: [EMAIL PROTECTED] mod_rewrite, proxys, authorization and redirects

2007-06-21 Thread Martijn
On 6/21/07, Joshua Slive <[EMAIL PROTECTED]> wrote: I don't know much about mod_perl, but this depends on a couple factors: 1. If you are using .htaccess files rather than httpd.conf for applying RewriteRules, then you are more likely to get per-directory configuration applied, including auth.

Re: [EMAIL PROTECTED] mod_rewrite, proxys, authorization and redirects

2007-06-21 Thread Joshua Slive
On 6/21/07, Martijn <[EMAIL PROTECTED]> wrote: Hello. My webserver uses a second server (non-apache) to deliver certain content, say xml files. This server runs on the same machine, on a different port. In my httpd.conf I have the following line RewriteRule ^(.*\.xml)$ http://localhost:8000/$

[EMAIL PROTECTED] mod_rewrite, proxys, authorization and redirects

2007-06-21 Thread Martijn
Hello. My webserver uses a second server (non-apache) to deliver certain content, say xml files. This server runs on the same machine, on a different port. In my httpd.conf I have the following line RewriteRule ^(.*\.xml)$ http://localhost:8000/$1 [P] which, indeed, successfully lets the secon

Re: [EMAIL PROTECTED] mod_rewrite inquiry

2007-06-20 Thread GKapitany
2007 06:03 cc PM Subject [EMAIL PROTECTED] mod_rewrite inquiry Please

[EMAIL PROTECTED] mod_rewrite inquiry

2007-06-20 Thread Steve Finkelstein
Hi all, I have a URL that looks like the following: http://foo/confirm/[EMAIL PROTECTED]/6w5vdn799umk01k5aaz0col.html I'm trying to have it rewrite to the following: RewriteEngine On RewriteRule ^confirm/([^/]*)/([^/]*)\.html$confirm.php?lmusr=$1&lmconfrm=$2 [R,L] so that the end result looks

Re: [EMAIL PROTECTED] Mod_rewrite syntax

2007-06-13 Thread Nikolai Lusan
On Sun, 2007-06-03 at 09:59 -0400, Dustin Schuemann wrote: > I just want to redirect people that go to > http://smallgroup.lausanne.org to > https://www.surveymonkey.com/s.aspx?sm=qgyWxi2%2fyXBXcqC4Hm6PRg%3d%3d > with mod_rewrite. What is the syntax for this. Are you sure mod_rewrite is the tool y

RE: [EMAIL PROTECTED] mod_rewrite and mod_jk help

2007-06-09 Thread Allen Pulsifer
> now i change your sample rewrite rule abit to > RewriteRule ^/(.*?)/(.*)$ /user/$2?user=$1 [L] > > When i tried to access http://www.example.com/me/home.jsp. i > got the following error in error_log > > [error] [client 127.0.0.1] File does not exist: /var/www/html/me > > Seems httpd ignore th

RE: [EMAIL PROTECTED] mod_rewrite and mod_jk help

2007-06-08 Thread Rony
Thanks Allen for your reply. in my setting, the /user/ has a home.jsp. if i access normally to www.example.com/user/home.jsp it works (i've set in /etc/hosts to point www.example.com to 127.0.0.1). the /user/ is in the tomcat, connected via mod_jk. now i change your sample rewrite rule abit to Re

RE: [EMAIL PROTECTED] mod_rewrite and mod_jk help

2007-06-08 Thread Allen Pulsifer
> Now want when a user browse www.example.com/someusername/ > httpd will forward the request to > www.example.com/user/?user=someusername > > And when browse a user browse > www.example.com/someusername/login/ httpd will forward the > request to www.example.com/user/login/?user=someusername >

[EMAIL PROTECTED] mod_rewrite and mod_jk help

2007-06-08 Thread Rony
Hi httpd users, Would greatly appreciate your help. Have the following case: I have the latest httpd, mod_jk, and tomcat installed. Have set all the /user/ to pass to tomcat via mod_jk. And it works, mod_jk no problem. JkMount /user/* lbUser Now want when a user browse www.example.com

Re: [EMAIL PROTECTED] mod_rewrite and authentication

2007-06-04 Thread Chris Tankersley
Joshua Slive wrote: On 6/4/07, Chris Tankersley <[EMAIL PROTECTED]> wrote: I've got a section of the website that I want only .htaccess authenticated users to be able to access, but I also want to push them to https://domain.name if they accidentally type in http://domain.name. If I throw both r

Re: [EMAIL PROTECTED] mod_rewrite and authentication

2007-06-04 Thread Joshua Slive
On 6/4/07, Chris Tankersley <[EMAIL PROTECTED]> wrote: I've got a section of the website that I want only .htaccess authenticated users to be able to access, but I also want to push them to https://domain.name if they accidentally type in http://domain.name. If I throw both rules into my .htacces

[EMAIL PROTECTED] mod_rewrite and authentication

2007-06-04 Thread Chris Tankersley
I've got a section of the website that I want only .htaccess authenticated users to be able to access, but I also want to push them to https://domain.name if they accidentally type in http://domain.name. If I throw both rules into my .htaccess I'm prompted to authenticate, then mod_rewrite fire

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-06-04 Thread Krist van Besien
On 6/4/07, José Ramón López <[EMAIL PROTECTED]> wrote: Hi List! I am trying to configure a rule with mod_rewrite, which allow me to change the value of one script parameter. I want the script to foward me to an error page when introducing service=wfs in the request The sevice=wfs parameter

[EMAIL PROTECTED] mod_rewrite problem

2007-06-04 Thread José Ramón López
Hi List! I am trying to configure a rule with mod_rewrite, which allow me to change the value of one script parameter. I want the script to foward me to an error page when introducing service=wfs in the request The sevice=wfs parameter can be in all positions This is my line: RewriteRule ^/cgi

RE: [EMAIL PROTECTED] Mod_rewrite syntax

2007-06-03 Thread Boyle Owen
> -Original Message- > From: Dustin Schuemann [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 03, 2007 3:59 PM > To: users@httpd.apache.org > Subject: [EMAIL PROTECTED] Mod_rewrite syntax > > I just want to redirect people that go to > http://smallgroup.

[EMAIL PROTECTED] Mod_rewrite syntax

2007-06-03 Thread Dustin Schuemann
I just want to redirect people that go to http:// smallgroup.lausanne.org to https://www.surveymonkey.com/s.aspx? sm=qgyWxi2%2fyXBXcqC4Hm6PRg%3d%3d with mod_rewrite. What is the syntax for this. Dustin Schuemann Network Engineer/Lead Programmer O: 616.235.0725 F: 616.235.0784 [E

Re: [EMAIL PROTECTED] mod_rewrite

2007-05-24 Thread Joshua Slive
On 5/24/07, Diar Gashi <[EMAIL PROTECTED]> wrote: Oops..I got the first part working, thanks a bunch. This is what I'm using for the second part: RewriteRule /x194 /landing/dyncon/prom/grea__byhand_x194.jsp [L,R] What the heck is the "R" doing in the flags? That is specifically asking for an

Re: [EMAIL PROTECTED] mod_rewrite

2007-05-24 Thread Diar Gashi
anding/dyncon/prom/ grea__byhand_x194.jsp' MY_IP - - [24/May/2007:16:08:22 -0400] [DOMAIN_NAME/sid#6a908][rid#45a28/initial] (1) pass through /landing/dyncon/prom/grea__byhand_x194.js p - Original Message From: Joshua Slive <[EMAIL PROTECTED]> To: users@httpd.apache.org Sent:

Re: [EMAIL PROTECTED] mod_rewrite

2007-05-24 Thread Joshua Slive
On 5/24/07, Diar Gashi <[EMAIL PROTECTED]> wrote: Joshua, the link you provided still does not open up for me. Uhg. That wasn't a URL to open. That was an example of a directive to achieve what you want. To be more explicit, place the following in httpd.conf: ErrorDocument 404 http://example.c

Re: [EMAIL PROTECTED] mod_rewrite

2007-05-24 Thread Diar Gashi
http://DOMAINNAME/x10. - Original Message From: Joshua Slive <[EMAIL PROTECTED]> To: users@httpd.apache.org Sent: Wednesday, May 23, 2007 4:41:56 PM Subject: Re: [EMAIL PROTECTED] mod_rewrite On 5/23/07, Diar Gashi <[EMAIL PROTECTED]> wrote: > > > > I need to c

Re: [EMAIL PROTECTED] mod_rewrite

2007-05-23 Thread Joshua Slive
On 5/23/07, Diar Gashi <[EMAIL PROTECTED]> wrote: Joshua, thanks for the very useful info. The site is currently not opening, but I'll give it a try again later. As for the second part, there is a redirect rule: Redirect /x10 http://DOMAIN_NAME/landing/index.jsp?wfId=685 Redirect definitely i

Re: [EMAIL PROTECTED] mod_rewrite

2007-05-23 Thread Diar Gashi
t;[EMAIL PROTECTED]> To: users@httpd.apache.org Sent: Wednesday, May 23, 2007 4:41:56 PM Subject: Re: [EMAIL PROTECTED] mod_rewrite On 5/23/07, Diar Gashi <[EMAIL PROTECTED]> wrote: > > > > I need to change a bahaviour on the rewrite of the apache server. Right now, > if I ty

Re: [EMAIL PROTECTED] mod_rewrite

2007-05-23 Thread Joshua Slive
On 5/23/07, Diar Gashi <[EMAIL PROTECTED]> wrote: I need to change a bahaviour on the rewrite of the apache server. Right now, if I type in a path that does not exist (like /nopage.html) Apache will serve up the 404 page (/html/404.html), but the URL will still read /nopage.html. I need the UR

[EMAIL PROTECTED] mod_rewrite

2007-05-23 Thread Diar Gashi
I need to change a bahaviour on the rewrite of the apache server. Right now, if I type in a path that does not exist (like /nopage.html) Apache will serve up the 404 page (/html/404.html), but the URL will still read /nopage.html. I need the URL to be /html/404.html Conversely, when someone goes

Re: [EMAIL PROTECTED] mod_rewrite and domain

2007-05-15 Thread Joshua Slive
On 5/15/07, Matteo Forni <[EMAIL PROTECTED]> wrote: I tryed but I got a 404... Hmmm... You don't take a clue, do you? ;-) Use the RerwiteLog! Joshua. - The official User-To-User support forum of the Apache HTTP Server Projec

Re: [EMAIL PROTECTED] mod_rewrite and domain

2007-05-15 Thread Matteo Forni
I tryed but I got a 404... 2007/5/15, Joshua Slive <[EMAIL PROTECTED]>: On 5/15/07, Matteo Forni <[EMAIL PROTECTED]> wrote: > Dear Apache Users, > I have a problem: i want to redirect an user that visits > http://www.adomain.com/statistics to > http://IPADDR/awstats/awstats.pl?config=adomain but

Re: [EMAIL PROTECTED] mod_rewrite and domain

2007-05-15 Thread Joshua Slive
On 5/15/07, Matteo Forni <[EMAIL PROTECTED]> wrote: Dear Apache Users, I have a problem: i want to redirect an user that visits http://www.adomain.com/statistics to http://IPADDR/awstats/awstats.pl?config=adomain but I don't know how to. I tryed with RewriteRule www\.(.*)/statistics http://IPADD

[EMAIL PROTECTED] mod_rewrite and domain

2007-05-15 Thread Matteo Forni
Dear Apache Users, I have a problem: i want to redirect an user that visits http://www.adomain.com/statistics to http://IPADDR/awstats/awstats.pl?config=adomain but I don't know how to. I tryed with RewriteRule www\.(.*)/statistics http://IPADDR/awstats/awstats.pl?config=$1 but i get a 404 error.

RE: [EMAIL PROTECTED] mod_rewrite do not rewrite internals

2007-05-09 Thread Chirouze Olivier
From: Емил Иванов / Emil Ivanov [mailto:[EMAIL PROTECTED] > Sent: 05 May 2007 14:40 > To: users@httpd.apache.org > Subject: [EMAIL PROTECTED] mod_rewrite do not rewrite internals > > Hi, > > I'm trying to make simple url rewriting for my site using mod_rewrite. >

[EMAIL PROTECTED] mod_rewrite do not rewrite internals

2007-05-05 Thread Емил Иванов / Emil Ivanov
Hi, I'm trying to make simple url rewriting for my site using mod_rewrite. The .htaccess: RewriteEngine On RewriteRule ^(.*)$ index.php?path=$0 When I test with http://localhost/some/path/here but instead of the path (some/path/here) I get index.php in the path?!? I looked in the rewrite.log

[EMAIL PROTECTED] mod_rewrite prg: synching impacted by backhand server crashes?

2007-05-02 Thread Jan Algermissen
Hi, I have a question regarding the impact of backhand server crashes in an Apache 2.0 reverse proxy setup that makes use of mod_rewrite's external mapping program functionality. We did configure the rewrite lock to protect the pipe access and usually everything works just fine. When the

Re: [EMAIL PROTECTED] Mod_rewrite RewriteRules and Error log problem

2007-04-24 Thread Lori Sutton
Yes, This is a loglevel of 9. --- "William A. Rowe, Jr." <[EMAIL PROTECTED]> wrote: > You're right - from the log it doesn't appear this > is the error. > Is this still as rewriteloglevel 9, or did you back > it down to 3? > > In any case *please* keep this thread on the list. > > > > Lori Sut

Re: [EMAIL PROTECTED] Mod_rewrite RewriteRules and Error log problem

2007-04-24 Thread Lori Sutton
--- "William A. Rowe, Jr." <[EMAIL PROTECTED]> wrote: > You're right - from the log it doesn't appear this > is the error. > Is this still as rewriteloglevel 9, or did you back > it down to 3? > > In any case *please* keep this thread on the list. > > > > Lori Sutton wrote: > > The output tha

Re: [EMAIL PROTECTED] Mod_rewrite RewriteRules and Error log problem

2007-04-23 Thread William A. Rowe, Jr.
Lori Sutton wrote: > > [Mon Apr 23 15:14:36 2007] [error] Can't parse URI > string ''. Skipping... One of your rewrite rules collapsed the result to nothing at all, which mod_rewrite refuses to continue processing. - The officia

[EMAIL PROTECTED] Mod_rewrite RewriteRules and Error log problem

2007-04-23 Thread Lori Sutton
In general, does anyone know why I would keep getting the following error in my Apache error log when I hit a URL that has some mod_rewrite RewriteRules applied to it? [Mon Apr 23 15:14:36 2007] [error] Can't parse URI string ''. Skipping... I ultimately get to the URL I want to get to fine.

Re: [EMAIL PROTECTED] mod_rewrite and environment variables

2007-04-22 Thread Nikolai Lusan
Hey, For anyone interested I have solved this one. Instead of using SetEnv I am doing a catch all match after enabling the rewrite engine in each vhost: RewriteEngine On RewriteRule ^(.*)$ $1 [E=SISTER_SITE:foo.a.com] Then in the conf file for the rewrites i do the matches as: Rewri

[EMAIL PROTECTED] mod_rewrite and environment variables

2007-04-22 Thread Nikolai Lusan
Greetings all, I have an issue, I maintain several sites that use the same code base and are required to be in separate VirtualHosts. These sites all have "sister" sites (separate code base different functionality) that also operate out of separate VirtuaHosts. I am trying to redirect things from

Re: [EMAIL PROTECTED] mod_rewrite

2007-03-27 Thread Joshua Slive
On 3/26/07, Peter Lauri <[EMAIL PROTECTED]> wrote: Hi, I am having some problems getting my mod_rewrite to work on my development server. On my production server (fedora c6) this works fine. But on my development server (fedora c6) it woun't work. I have a file basicpage.php that is located in

[EMAIL PROTECTED] mod_rewrite

2007-03-26 Thread Peter Lauri
Hi, I am having some problems getting my mod_rewrite to work on my development server. On my production server (fedora c6) this works fine. But on my development server (fedora c6) it woun't work. I have a file basicpage.php that is located in the webroot. I then have a .htaccess file with th

Re: [EMAIL PROTECTED] mod_rewrite: time of last modification?

2007-03-13 Thread Vincent Bray
On 13/03/07, rihad <[EMAIL PROTECTED]> wrote: Hi, I was wondering if it was possible to use the file's modification time (mtime) as a rewrite condition? For example, this is a howto snippet presented at : RewriteCond %{REQUEST

[EMAIL PROTECTED] mod_rewrite: time of last modification?

2007-03-13 Thread rihad
Hi, I was wondering if it was possible to use the file's modification time (mtime) as a rewrite condition? For example, this is a howto snippet presented at : RewriteCond %{REQUEST_FILENAME} !-s RewriteRule ^page\.html$

[EMAIL PROTECTED] mod_rewrite

2007-03-08 Thread Kaplan, Andrew H.
Hi there -- Can I install mod_rewrite onto an existing Apache 1.3.31 server by itself, or does it need additional modules in order for it to be successfully installed? Thanks. The information transmitted in this electronic communication is intended only for the person or entity to whom it

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-08 Thread matt farey
Israel Brewster wrote: > On Mar 8, 2007, at 8:33 AM, matt farey wrote: > >> yeah, if you compare the number and type of rewrites for this package >> with the way that wordpress used to operate, there is a lot of >> correlation, instead now wordpress uses a much simpler form of rewrite >> which di

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-08 Thread Israel Brewster
On Mar 8, 2007, at 8:33 AM, matt farey wrote: yeah, if you compare the number and type of rewrites for this package with the way that wordpress used to operate, there is a lot of correlation, instead now wordpress uses a much simpler form of rewrite which directs the REQUEST_URI to the applicati

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-08 Thread matt farey
Israel Brewster wrote: > Just got a response from the developer of the PHP script > (serendipity). Turns out the problem lies there, and not with the > rewrite rule. Apparently what's going on is that the php script uses > the REQUEST_URI to determine what to display. If it doesn't recognize > th

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-08 Thread Israel Brewster
Just got a response from the developer of the PHP script (serendipity). Turns out the problem lies there, and not with the rewrite rule. Apparently what's going on is that the php script uses the REQUEST_URI to determine what to display. If it doesn't recognize the REQUEST_URI (as is the ca

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Vincent Bray
On 08/03/07, Israel Brewster <[EMAIL PROTECTED]> wrote: Oh, sure. Sorry- not trying to make things difficult here, it's just that I spent several hours yesterday working on the issue, so I'm a bit frustrated, and quite possibly not thinking straight any more :P. Anyway, the rewrite rules I'm curr

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Israel Brewster
On Mar 7, 2007, at 1:16 PM, Vincent Bray wrote: Like, posting the rest of your rules, perhaps? As you're rewriting to a php script, are you able to edit it to show a dump of the environment? phpinfo(); die(); does that job. Also, are there any Alias directives for nagios? Seeing your config in mo

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Vincent Bray
On 08/03/07, Israel Brewster <[EMAIL PROTECTED]> wrote: Ok, yeah- that made the rewrite rules start matching when in the httpd.conf file, unfortunately the behavior I'm getting with that particular rule is the same. Maybe it's time to consider a different approach entirely. Like, posting the re

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Israel Brewster
[snip] In this case, ^nagios never matches because the per-directory prefix isn't stripped. ^/nagios is what you need, in addition to simillar changes for the rest of your rules. Ok, yeah- that made the rewrite rules start matching when in the httpd.conf file, unfortunately the behavior I'm ge

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Vincent Bray
On 08/03/07, Israel Brewster <[EMAIL PROTECTED]> wrote: Thanks for your response and suggestions. On Mar 7, 2007, at 9:48 AM, Vincent Bray wrote: > Hi, welcome to rewrite-in-htaccess pain and suffering. As you're able > to use RewriteLog, why put rewrite rules in htaccess? When I tried that my

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Israel Brewster
Thanks for your response and suggestions. On Mar 7, 2007, at 9:48 AM, Vincent Bray wrote: Hi, welcome to rewrite-in-htaccess pain and suffering. As you're able to use RewriteLog, why put rewrite rules in htaccess? When I tried that my RewriteRules stopped working entirely :P I suspect that

Re: [EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Vincent Bray
On 08/03/07, Israel Brewster <[EMAIL PROTECTED]> wrote: Looking at the rewrite log shows the following entries: xxx.xxx.xxx.xxx - - [07/Mar/2007:08:28:03 -0900] [izzy.homeip.net/ sid#1802648][rid#1838c38/initial] (2) init rewrite engine with requested uri /nagios xxx.xxx.xxx.xxx - - [07/Mar/2007

[EMAIL PROTECTED] mod_rewrite problem

2007-03-07 Thread Israel Brewster
I am having a very aggravating problem with Rewrite rules, one in particular. In the root level of my webserver, I have an .htaccess file that includes (among others) the following lines: RewriteEngine On RewriteBase / RewriteRule ^nagios[/A-Za-z0-9]* index.php?/categories/8-Nagios [NC,QSA,

Re: [EMAIL PROTECTED] mod_rewrite nocase loop problem

2007-03-05 Thread Joshua Slive
On 3/5/07, N.J. Thomas <[EMAIL PROTECTED]> wrote: We have this working URL: http://example.org/BAR/ We would like to make the path portion of the URL case insensitive, so that the following: http://example.org/bar/ http://example.org/Bar/ http://example.org/bAr/ Would all go b

Re: [EMAIL PROTECTED] mod_rewrite nocase loop problem

2007-03-05 Thread Nick Kew
On Mon, 5 Mar 2007 11:49:20 -0500 "N.J. Thomas" <[EMAIL PROTECTED]> wrote: > http://example.org/bar/ > http://example.org/Bar/ > http://example.org/bAr/ > > Would all go back to the original URL. Using mod_rewrite, I tried > applying the following rule: > > RewriteRule ^/bar/$ /

[EMAIL PROTECTED] mod_rewrite nocase loop problem

2007-03-05 Thread N.J. Thomas
We have this working URL: http://example.org/BAR/ We would like to make the path portion of the URL case insensitive, so that the following: http://example.org/bar/ http://example.org/Bar/ http://example.org/bAr/ Would all go back to the original URL. Using mod_rewrite, I tried

[EMAIL PROTECTED] mod_rewrite and proxy balancer to non-root path

2007-03-03 Thread Chris Dawson
I am attempting to take this URL: http://foobar.com/path and rewrite it to balance on a balancer server. I have a rewrite rule like this: RewriteRule ^/path(.*)$ balancer://path_balancer%{REQUEST_URI} [P,QSA,L] I then have a balancer setup like this: BalancerMember http://192.168.2.77:8001

Re: [EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread Nick Kew
On Fri, 23 Feb 2007 22:15:01 +0600 "Sergey N. Romanov" <[EMAIL PROTECTED]> wrote: > Nick Kew wrote: > > > You want mod_proxy_html for that. > > See also http://www.apachetutor.org/admin/reverseproxies > > Yes, I see. But this is not exactly that we need. > In this example I can see that we shoul

Re: [EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread Sergey N. Romanov
Nick Kew wrote: > You want mod_proxy_html for that. > See also http://www.apachetutor.org/admin/reverseproxies Yes, I see. But this is not exactly that we need. In this example I can see that we should specify ProxyPass and ProxyHTMLURLMap for each /XYZ/. Right? But we will have thousands of /XYZ

Re: [EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread Nick Kew
On Fri, 23 Feb 2007 21:07:13 +0600 "Sergey N. Romanov" <[EMAIL PROTECTED]> wrote: > I'll try to explain... You want mod_proxy_html for that. See also http://www.apachetutor.org/admin/reverseproxies -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetut

Re: [EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread Sergey N. Romanov
Hi, One more thing which I can't understand... When I make request with any browser (even with lynx), then this do not work... But when I make request with GET (script from perl lwp-request package), then this work as should!!! I.e. content filtered. This make me crazy. Any ideas?! -- Best r

Re: [EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread Sergey N. Romanov
Nick Kew wrote: > Yep. mod_ext_filter is checking the intype before it has that > information from the proxy. Thanks for advice! > Anyway, why are you using mod_ext_filter? Can't you do > what you want with a real filter? I have read mod_filter page at http://httpd.apache.org/docs/2.2/mod/mod

Re: [EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread Sergey N. Romanov
Pid wrote: >> what you want with a real filter? > > or mod_proxy... I'll try to explain... User requested url like http://our.server/XYZ/page.html, we map XYZ to real server address, get specified page from this server and send received page to user. Problem is that page can contain images and

Re: [EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread Pid
Nick Kew wrote: On Fri, 23 Feb 2007 19:56:06 +0600 "Sergey N. Romanov" <[EMAIL PROTECTED]> wrote: Without rewrite engine filter works fine and I can see that content is changed by filter. But when rewrite engine is activated, then I can see, that content is not changed. Can someone explain me

Re: [EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread Nick Kew
On Fri, 23 Feb 2007 19:56:06 +0600 "Sergey N. Romanov" <[EMAIL PROTECTED]> wrote: > > Without rewrite engine filter works fine and I can see that content is > changed by filter. But when rewrite engine is activated, then I can > see, that content is not changed. > > Can someone explain me why th

Re: [EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread Sergey N. Romanov
> have you tried [P,L,T=text/html] This do not work. -- Best regards, Sergey N. Romanov - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. T

Re: [EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread matt farey
have you tried [P,L,T=text/html] Sergey N. Romanov wrote: > Hi, > > We need system which will make these things : > - user requested url like http://our.server/XYZ/page.html > - rewrite engine should map /XYZ/ to real server name and make proxy > request to http://another.server/page.html > - the

[EMAIL PROTECTED] mod_rewrite + proxy requests + mod_exf_filter

2007-02-23 Thread Sergey N. Romanov
Hi, We need system which will make these things : - user requested url like http://our.server/XYZ/page.html - rewrite engine should map /XYZ/ to real server name and make proxy request to http://another.server/page.html - then output filter should replace any specified content Sound like very eas

Re: [EMAIL PROTECTED] mod_rewrite to speed up twiki

2007-01-07 Thread Bob
Timothy Legge wrote: I have included the rewrite logs for the one request for IT/WebHome. It seems to me that there is too much in the file for the one request. I expect to see two requests (one from my pc to apache and the other from the apache server during the mod_rewrite call to the generat

Re: [EMAIL PROTECTED] mod_rewrite subdomains and subdirectories

2007-01-06 Thread Bob
Charles Palmer wrote: RewriteCond %{HTTP_HOST} ^[^\.w{3}]+\.wl.example.com$ That won't work. Your expression [^\.w{3}] is invalid. This is a character class stating that the chars }3w.{ must not be present. You're looking for a negative lookahead, (?!www) Do you have access to your httpd.co

[EMAIL PROTECTED] mod_rewrite to speed up twiki

2007-01-05 Thread Timothy Legge
Hi I have been following Christian Folini's "Rock your Wiki!" article in the April issue of Sysadmin magazine. I have implemented his rules and script to generate a cached page but things do not seem to be working. I have reviewed the logs and it seems like the rules below work. I was concerned

[EMAIL PROTECTED] mod_rewrite subdomains and subdirectories

2007-01-04 Thread Charles Palmer
Greetings: I am currently attempting to get the following set up: User goes to foo.bar.com Server is set up for www.bar.com and *.bar.com mod-rewrite is enabled rewrite rules accept foo.bar.com and opens a sub-directory under / home/bar.com/htdocs named foo User sees http://foo.bar.com and is s

Re: [EMAIL PROTECTED] mod_rewrite and HTTP headers. (Accept-Language)

2006-12-20 Thread Joshua Slive
On 12/20/06, Richard de Vries <[EMAIL PROTECTED]> wrote: I am an absolute newbie when it comes to mod_rewrite and I am still going thru some documentation to see whether I can make it do what I need. While I am going thru the docs and examples, I figured to post a message on this list as well, j

[EMAIL PROTECTED] mod_rewrite and HTTP headers. (Accept-Language)

2006-12-20 Thread Richard de Vries
I am an absolute newbie when it comes to mod_rewrite and I am still going thru some documentation to see whether I can make it do what I need. While I am going thru the docs and examples, I figured to post a message on this list as well, just in case someone knows the answer right from the top of

Re: [EMAIL PROTECTED] mod_rewrite: remembering environment variables

2006-12-01 Thread A. K.
Joshua, First of all, thanks for your responses. I've never had to "configure" apache at all prior to this exercise so I'm fairly green in that regard. No better place to start than mod_proxy and mod_rewrite, huh? Anyways proxy server, yes. However, I can't use a real proxy because filtering

Re: [EMAIL PROTECTED] mod_rewrite: remembering environment variables

2006-11-30 Thread Joshua Slive
On 11/30/06, A. K. <[EMAIL PROTECTED]> wrote: iptables redirects to the VirtualHost which rewrites to the script housed on localhost. The script does some processing then "re-requests" the original request based on the parameters and query string passed to it. google.com will display just fine e

Re: [EMAIL PROTECTED] mod_rewrite: remembering environment variables

2006-11-30 Thread A. K.
iptables redirects to the VirtualHost which rewrites to the script housed on localhost. The script does some processing then "re-requests" the original request based on the parameters and query string passed to it. google.com will display just fine except for the logo image which gets re-written

Re: [EMAIL PROTECTED] mod_rewrite: remembering environment variables

2006-11-30 Thread Joshua Slive
On 11/30/06, A. K. <[EMAIL PROTECTED]> wrote: The mod_rewrite doc mentions that the E=VAR:VAL flag "[can be used] to strip but remember information from URLs". What exactly does that mean? I need to "remember" the values of certain EV's after a rewrite process has completed. It would be particl

<    1   2   3   4   5   6   >