RE: [users@httpd] rewrite rule with ProxyPass and ProxyPassReverse

2022-07-11 Thread jonmcalexander
Thank you for your cooperation. From: Frank Gingras Sent: Monday, July 11, 2022 3:11 PM To: users@httpd.apache.org Subject: Re: [users@httpd] rewrite rule with ProxyPass and ProxyPassReverse Typically, the solution is to avoid adding the double slashes to begin with. If you show us your

Re: [users@httpd] rewrite rule with ProxyPass and ProxyPassReverse

2022-07-11 Thread Frank Gingras
Typically, the solution is to avoid adding the double slashes to begin with. If you show us your Proxy* directives, we can comment further. On Mon, 11 Jul 2022 at 15:45, wrote: > I am not an HTTPD expert and am running into issues where double-slashes > are being added to the end of the

[users@httpd] rewrite rule with ProxyPass and ProxyPassReverse

2022-07-11 Thread jonmcalexander
I am not an HTTPD expert and am running into issues where double-slashes are being added to the end of the ProxyPass and/or ProxyPassReverse statements in our mod_proxy configuration. What is the proper way to handle this issue with RewriteRules? Thanks, Dream * Excel * Explore * Inspire Jon

[users@httpd] Re:Re: [users@httpd] rewrite rule leads to infinite rewrite loop at apache

2015-07-15 Thread javalishixml
Eric, My below configuration is just going to jump the url from http://rm.jco.com.cn/myjco/orders/ to https://rm.jco.com.cn/myjco/orders/ But it leads to infinite rewrite loop inside apache RewriteCond %{SERVER_PORT} !^443$ RewriteCond %{HTTP_HOST} ^rm.jco.com.cn$ RewriteCond

[users@httpd] rewrite rule leads to infinite rewrite loop at apache

2015-07-15 Thread javalishixml
Hi Gurus, Just a silly question this is. But I really suffer it too much ... :( I'm using rewrite module to do rewrite url. I made below rule: RewriteCond %{SERVER_PORT} !^443$ RewriteCond %{HTTP_HOST} ^www.jco.com.cn$ RewriteCond %{REQUEST_URI} ^/myjco/mySecurity RewriteRule (.*)

Re: [users@httpd] rewrite rule leads to infinite rewrite loop at apache

2015-07-15 Thread Eric Covener
On Wed, Jul 15, 2015 at 12:32 PM, javalishixml javalishi...@163.com wrote: RewriteCond %{REQUEST_URI} ^/myjco/mySecurity You probably meant to negate this one, specifically to avoid the loop? -- Eric Covener cove...@gmail.com

[users@httpd] Rewrite Rule Configuration

2015-04-28 Thread Pablo Alfaro
Hi everybody, I'm having a problem configuring a rewrite rule for my site. I'm using apache 2.2.22 on Debian 7. I used to have a single site under /var/www/Intranet/public. The former rewrite rule configuration was on an .htaccess file in said directory having the following: SetEnv

Re: [users@httpd] rewrite rule problem

2014-07-25 Thread Igor Cicimov
On Fri, Jul 25, 2014 at 2:33 PM, Nick Edwards nick.z.edwa...@gmail.com wrote: Howdy, I've sent this to the roundcube list few days ago, no-one replied so , since its also apache related, I'll ask here. paste of message Trying to understand the new security rules in .htaccess - deny

[users@httpd] rewrite rule problem

2014-07-24 Thread Nick Edwards
Howdy, I've sent this to the roundcube list few days ago, no-one replied so , since its also apache related, I'll ask here. paste of message Trying to understand the new security rules in .htaccess - deny access to files not containing a dot or starting with a dot # in all locations except

[users@httpd] Rewrite rule

2014-04-30 Thread Sebastien Moretti
Hi I encounter problems to rewrite a rule The page /cgi-bin/blt?action=cs_query is now gone and I would like to notify this. I tried the following thing without success. RewriteEngine on RewriteRule ^/cgi-bin/blt?action=cs_query$ - [G] An idea ? I tried with \? without success. I have

Re: [users@httpd] Rewrite rule

2014-04-30 Thread Igor Cicimov
I tried the following thing without success. RewriteEngine on RewriteRule ^/cgi-bin/blt?action=cs_query$ - [G] mod_rewrite matches the URi not the the query string. Read about RewriteCond here: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond

Re: [users@httpd] Rewrite rule

2014-04-30 Thread Sebastien Moretti
I tried the following thing without success. RewriteEngine on RewriteRule ^/cgi-bin/blt?action=cs_query$ - [G] mod_rewrite matches the URi not the the query string. Read about RewriteCond here: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewritecond I tried RewriteCond

Re: [users@httpd] Rewrite rule

2014-04-30 Thread Igor Cicimov
RewriteCond %{QUERY_STRING} ^action=cs_query$ RewriteRule ^/cgi-bin/blt?action=cs_query$ - [G] Very close with this one ... Try: RewriteCond %{QUERY_STRING} ^action=cs_query$ RewriteRule ^/cgi-bin/blt$ - [G] As I said before, you can't include the query string in RewriteRule

Re: [users@httpd] Rewrite rule

2014-04-30 Thread Sebastien Moretti
RewriteCond %{QUERY_STRING} ^action=cs_query$ RewriteRule ^/cgi-bin/blt?action=cs_query$ - [G] Very close with this one ... Try: RewriteCond %{QUERY_STRING} ^action=cs_query$ RewriteRule ^/cgi-bin/blt$ - [G] As I said before, you can't include the query string in RewriteRule

[users@httpd] rewrite rule along with mod_jk

2013-08-23 Thread vicky
I would like to redirect the request from apache to tomcat using the URL http://dev.market.bills.com/    without mentioning any context root in this url ,the request should get directed using the above URL to /food-bils application  which is deployed on Tomcat      Kindly suggest what is the

Re: [users@httpd] rewrite rule along with mod_jk

2013-08-23 Thread Eric Covener
On Fri, Aug 23, 2013 at 7:44 AM, vicky vicky007aggar...@yahoo.co.in wrote: I would like to redirect the request from apache to tomcat using the URL http://dev.market.bills.com/ without mentioning any context root in this url ,the request should get directed using the above URL to /food-bils

[users@httpd] Rewrite Rule

2013-08-02 Thread Mukesh Kumar
Hi, I have below similar rewrite rule in my conf - --- RewriteCond %{HTTP_HOST} ^abc.xyz.com|^abc$ RewriteCond %{REQUEST_URI} !^/abc/.* RewriteRule ^(.*)$ http://xyz.com/test/ [E=HTTP_REFERER:%{HTTP_REFERER},L] --- If i hit, abc.xyz.com or abc - it redirects as per

Re: [users@httpd] rewrite rule on apache2 .htaccess file (SOLVED)

2013-07-22 Thread Vincenzo D'Amore
Hi, happy to hear you have figured out at last :) For the future, if you're in trouble trying to understand what's wrong in your rewrite, if you can, try to enable RewriteLog it will help really a lot. Best regards, Vincenzo 2013/7/21 Tamer Higazi th9...@googlemail.com Solved! My rewrite

Re: [users@httpd] rewrite rule on apache2 .htaccess file (SOLVED)

2013-07-22 Thread Tamer Higazi
Hi Vincenzo! Thank you for this advise as well By the way, I have added you in skype if you allow me. Tamer On 07/22/13 18:00, Vincenzo D'Amore wrote: Hi, happy to hear you have figured out at last :) For the future, if you're in trouble trying to understand what's wrong in your

Re: [users@httpd] rewrite rule on apache2 .htaccess file

2013-07-21 Thread Vincenzo D'Amore
Hi, IMHO the first rewrite doesn't match because regex is wrong. The URL your rewrite should match is something like this: /css/path/filename.css so your regex should first match the first / character. Then, don’t confuse alternation with a character class. If you want express an alternation

Re: [users@httpd] rewrite rule on apache2 .htaccess file

2013-07-21 Thread Tamer Higazi
Hi Vincenzo! My rewrite rule now lookes like this: RewriteEngine on RewriteRule ^/(css|js|fonts)(/.*)?$ /static$2 [L] RewriteRule ^/(.*)$ /index.php/$1 [L] and now nothing works :( If you have any further ideas, I would thank you. Tamer On 07/21/13 10:46, Vincenzo D'Amore wrote: Hi,

[users@httpd] rewrite rule on apache2 .htaccess file (SOLVED)

2013-07-21 Thread Tamer Higazi
Solved! My rewrite rules now look like this: RewriteEngine on RewriteCond %{REQUEST_URI} !/static/ RewriteRule ^(.+)\.(css|img|fonts|js)$ /static/$1 [L] RewriteCond $1 !^(index\.php|images|robots\.txt|static) RewriteRule ^(.*)$ /index.php/$1 [L] On 07/21/13 20:34, Tamer Higazi wrote: Hi

[users@httpd] rewrite rule on apache2 .htaccess file

2013-07-20 Thread Tamer Higazi
Hi people! I have problems making successfully a rewrite rule for my Webapplication (CodeIgniter) with mod_rewrite. In my .htaccess file, I have the following rewrite rules: RewriteEngine on RewriteRule ^[css|js|fonts](/.*)?$ /static$1 [L] RewriteRule ^(.*)$ /index.php/$1 [L] But the 1st rule

[users@httpd] Rewrite rule redirection from http to https does not work.

2013-05-02 Thread Ravi Roy
Hi Guys, My configuration is Apache/2.2.23 on CentOS x86_64, running Subversion server. Recently I installed SSL certificates and I want to redirect all request comming to http://myhostname.domain.com/svn/reponame to be redirected to https://myhostname.domain.com/svn/reponame automatically. This

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Chris Arnold
From: Chris Arnold carn...@electrichendrix.com To: users@httpd.apache.org Sent: Wednesday, April 24, 2013 3:21:25 PM Subject: Re: [users@httpd] Rewrite Rule On Apr 24, 2013, at 2:00 PM, Chris Arnold wrote: On Apr 23, 2013, at 8:39 PM, Chris Arnold wrote: Apache 2.12.x on SLES11 SP2

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Tom Evans
On Thu, Apr 25, 2013 at 4:13 PM, Chris Arnold carn...@electrichendrix.com wrote: From: Chris Arnold carn...@electrichendrix.com To: users@httpd.apache.org Sent: Wednesday, April 24, 2013 3:21:25 PM Subject: Re: [users@httpd] Rewrite Rule On Apr 24, 2013, at 2:00 PM, Chris Arnold wrote

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Chris Arnold
On Apr 25, 2013, at 11:32 AM, Tom Evans tevans...@googlemail.com wrote: It looks like you are rewriting it to it's current location. This leads to a loop. Why are you using rewrite rules anyway? Because reverse proxy does not work It seems like you want to reverse proxy from an apache

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Tom Evans
On Thu, Apr 25, 2013 at 4:53 PM, Chris Arnold carn...@electrichendrix.com wrote: On Apr 25, 2013, at 11:32 AM, Tom Evans wrote: It looks like you are rewriting it to it's current location. This leads to a loop. Why are you using rewrite rules anyway? Because reverse proxy does not work

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Chris Arnold
that use these resources. Should you want access to the server, i can supply that, just let me know. Thanks for the help - Original Message - From: Tom Evans tevans...@googlemail.com To: users@httpd.apache.org Sent: Thursday, April 25, 2013 12:39:47 PM Subject: Re: [users@httpd] Rewrite Rule

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Chris Arnold
supply that, just let me know. Thanks for the help - Original Message - From: Tom Evans tevans...@googlemail.com To: users@httpd.apache.org Sent: Thursday, April 25, 2013 12:39:47 PM Subject: Re: [users@httpd] Rewrite Rule On Thu, Apr 25, 2013 at 4:53 PM, Chris Arnold carn

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Frank Gingras
that, just let me know. Thanks for the help - Original Message - From: Tom Evans tevans...@googlemail.com To: users@httpd.apache.org Sent: Thursday, April 25, 2013 12:39:47 PM Subject: Re: [users@httpd] Rewrite Rule On Thu, Apr 25, 2013 at 4:53 PM, Chris Arnold carn...@electrichendrix.com wrote

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Chris Arnold
On Apr 25, 2013, at 12:36 PM, Tom Evans tevans...@googlemail.com wrote: On Thu, Apr 25, 2013 at 4:53 PM, Chris Arnold carn...@electrichendrix.com wrote: On Apr 25, 2013, at 11:32 AM, Tom Evans wrote: Because reverse proxy does not work ... The *only* way to get content from a backend

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Chris Arnold
On Apr 25, 2013, at 3:29 PM, Chris Arnold wrote: Ok, I got namevirtualhost working on 443. I also made a new VirtualHost as you instructed above. In fact, https://apps.domain.tld does make it to the other server, 192.168.123.7. Now the problem is the proxied url does not complete, it stops

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Chris Arnold
- Original Message - From: Chris Arnold carn...@electrichendrix.com To: users@httpd.apache.org Sent: Thursday, April 25, 2013 4:29:15 PM Subject: Re: [users@httpd] Rewrite Rule On Apr 25, 2013, at 3:29 PM, Chris Arnold wrote: Ok, I got namevirtualhost working on 443. I also made

Re: [users@httpd] Rewrite Rule

2013-04-25 Thread Chris Arnold
On Apr 25, 2013, at 9:53 PM, Chris Arnold wrote: From: Chris Arnold To: users@httpd.apache.org Sent: Thursday, April 25, 2013 4:29:15 PM Subject: Re: [users@httpd] Rewrite Rule On Apr 25, 2013, at 3:29 PM, Chris Arnold wrote: Ok, I got namevirtualhost working on 443. I also made

Re: [users@httpd] Rewrite Rule

2013-04-24 Thread Chris Arnold
On Apr 23, 2013, at 8:39 PM, Chris Arnold carn...@electrichendrix.com wrote: Apache 2.12.x on SLES11 SP2. We have a RDS server behind an apache server using proxypass. We need users to get to the RDS server using https://apps.domain.tld. The apache server should catch this request and

Re: [users@httpd] Rewrite Rule

2013-04-24 Thread Chris Arnold
On Apr 24, 2013, at 2:00 PM, Chris Arnold carn...@electrichendrix.com wrote: On Apr 23, 2013, at 8:39 PM, Chris Arnold wrote: Apache 2.12.x on SLES11 SP2. We have a RDS server behind an apache server using proxypass. We need users to get to the RDS server using https://apps.domain.tld.

[users@httpd] Rewrite Rule

2013-04-23 Thread Chris Arnold
Apache 2.12.x on SLES11 SP2. We have a RDS server behind an apache server using proxypass. We need users to get to the RDS server using https://apps.domain.tld. The apache server should catch this request and send/rewrite to https://apps.domain.tld/rds/something/something/login.whatever. We

Re: [users@httpd] Rewrite Rule Rewriting root site

2013-04-19 Thread Pete Houston
On Mon, Apr 15, 2013 at 06:57:13PM -0400, Chris Arnold wrote: We have a server at http://rootsite.net. We also have another site/app that runs at http://apps.rootsite.net. We host client applications on our server using apache so the above site/app needs to be

Re: [users@httpd] Rewrite Rule Rewriting root site

2013-04-19 Thread Chris Arnold
On Apr 19, 2013, at 4:48 AM, Pete Houston p...@openstrike.co.uk wrote: On Mon, Apr 15, 2013 at 06:57:13PM -0400, Chris Arnold wrote: We have a server at http://rootsite.net. We also have another site/app that runs at http://apps.rootsite.net. We host client applications on our server using

Re: [users@httpd] Rewrite Rule Rewriting root site

2013-04-17 Thread Chris Arnold
On Apr 15, 2013, at 7:51 PM, Chris Arnold carn...@electrichendrix.com wrote: On Apr 15, 2013, at 7:41 PM, Daniel Ruggeri wrote: On 4/15/2013 6:34 PM, Chris Arnold wrote: Actually, it is the RedirectMatch specifically causing the problem. How to specify only match

[users@httpd] Rewrite Rule Rewriting root site

2013-04-15 Thread Chris Arnold
We have a server at http://rootsite.net. We also have another site/app that runs at http://apps.rootsite.net. We host client applications on our server using apache so the above site/app needs to be http://apps.ourclientsdomain.tld. Here is what i have gotten to work in the site/app virtual

Re: [users@httpd] Rewrite Rule Rewriting root site

2013-04-15 Thread Eric Covener
On Mon, Apr 15, 2013 at 6:57 PM, Chris Arnold carn...@electrichendrix.com wrote: We have a server at http://rootsite.net. We also have another site/app that runs at http://apps.rootsite.net. We host client applications on our server using apache so the above site/app needs to be

Re: [users@httpd] Rewrite Rule Rewriting root site

2013-04-15 Thread Chris Arnold
On Mon, Apr 15, 2013 at 6:57 PM, Chris Arnold carn...@electrichendrix.com wrote: We have a server at http://rootsite.net. We also have another site/app that runs at http://apps.rootsite.net. We host client applications on our server using apache so the above site/app needs to be

Re: [users@httpd] Rewrite Rule Rewriting root site

2013-04-15 Thread Daniel Ruggeri
On 4/15/2013 6:34 PM, Chris Arnold wrote: Actually, it is the RedirectMatch specifically causing the problem. How to specify only match http://apps.somesite.tld? You can't. You have to use RewriteCond (as you have) and then use RewriteRule ^/$ /somealias/ in place of the RedirectMatch that you

Re: [users@httpd] Rewrite Rule Rewriting root site

2013-04-15 Thread Chris Arnold
On Apr 15, 2013, at 7:41 PM, Daniel Ruggeri drugg...@primary.net wrote: On 4/15/2013 6:34 PM, Chris Arnold wrote: Actually, it is the RedirectMatch specifically causing the problem. How to specify only match http://apps.somesite.tld? You can't. You have to use RewriteCond (as you have) and

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-11 Thread Eric Covener
VirtualHost *:80 ServerAdmin em...@domain.com ServerName domain.net ServerAlias www.domain.net #SSLProxyEngine On #ProxyPass /ifolder/ https://192.168.123.4/ifolder/ #ProxyPassReverse /ifolder/ https://192.168.123.4/ifolder/ RewriteEngine On RewriteRule

RE: [users@httpd] Rewrite Rule Help (again)

2012-07-11 Thread Brian Gaber
...@electrichendrix.com] Sent: Tuesday, July 10, 2012 10:20 PM To: users@httpd.apache.org Subject: Re: [users@httpd] Rewrite Rule Help (again) In the event anyone comes across this, i got this to work using the following: RewriteEngine On RewriteCond %{HTTP_HOST} !^update.domain.com$ [NC

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-10 Thread Chris Arnold
Anybody got any ideas? Sent from my iPhone On Jul 9, 2012, at 7:24 PM, Chris Arnold carn...@electrichendrix.com wrote: On Jul 9, 2012, at 6:28 PM, Daniel Ruggeri drugg...@primary.net wrote: On 7/9/2012 5:03 PM, Chris Arnold wrote: So the RewriteRule ^/$ http://192.168.123.2 [L] Sends all

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-10 Thread Chris Arnold
Am I not asking the right question? Have I not given enough information? Or am I missing something? Sent from my iPhone On Jul 10, 2012, at 1:27 PM, Chris Arnold carn...@electrichendrix.com wrote: Anybody got any ideas? Sent from my iPhone On Jul 9, 2012, at 7:24 PM, Chris Arnold

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-10 Thread Perry Smith
On Jul 10, 2012, at 6:11 PM, Chris Arnold wrote: Am I not asking the right question? Have I not given enough information? Or am I missing something? Sent from my iPhone On Jul 10, 2012, at 1:27 PM, Chris Arnold carn...@electrichendrix.com wrote: Anybody got any ideas? Sent from my

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-10 Thread Igor Cicimov
You've been already given the answer by Eric what else do you need? Read mod_rewrite manual and combine RewriteCond and RewriteRule commands thats all you need to do. On Jul 11, 2012 9:12 AM, Chris Arnold carn...@electrichendrix.com wrote: Am I not asking the right question? Have I not given

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-10 Thread Chris Arnold
You've been already given the answer by Eric what else do you need? Read mod_rewrite manual and combine RewriteCond and RewriteRule commands thats all you need to do. Igor,i have read the rewrite guide and tried what i thought was needed. Which i have repeated here more than 1 time but this

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-10 Thread Chris Arnold
@httpd.apache.org Sent: Tuesday, July 10, 2012 9:37:30 PM Subject: Re: [users@httpd] Rewrite Rule Help (again) You've been already given the answer by Eric what else do you need? Read mod_rewrite manual and combine RewriteCond and RewriteRule commands thats all you need to do. Igor,i have read the rewrite

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-10 Thread Chris Arnold
Subject: Re: [users@httpd] Rewrite Rule Help (again) You've been already given the answer by Eric what else do you need? Read mod_rewrite manual and combine RewriteCond and RewriteRule commands thats all you need to do. Igor,i have read the rewrite guide and tried what i thought was needed

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-10 Thread Daniel Ruggeri
On 7/10/2012 9:32 PM, Chris Arnold wrote: RewriteEngine On RewriteCond %{HTTP_HOST} !^update.domain.com$ [NC] RewriteRule ^/$ http://private.ip.address [R,L] You may need to change the R to a P: RewriteEngine On RewriteCond %{HTTP_HOST} !^update.domain.com$ [NC] RewriteRule ^/$

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-10 Thread Chris Arnold
You may need to change the R to a P: RewriteEngine On RewriteCond %{HTTP_HOST} !^update.domain.com$ [NC] RewriteRule ^/$ http://private.ip.address/ [P,L] This sends all http traffic to the private ip server This turns the rule into a proxy to that private IP, assuming that is what you are

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-10 Thread Igor Cicimov
On Wed, Jul 11, 2012 at 1:22 PM, Chris Arnold carn...@electrichendrix.comwrote: You may need to change the R to a P: RewriteEngine On RewriteCond %{HTTP_HOST} !^update.domain.com$ [NC] RewriteRule ^/$ http://private.ip.address/ [P,L] This sends all http traffic to the private ip server

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-09 Thread Chris Arnold
Anybody got any ideas? Sent from my iPhone On Jul 8, 2012, at 9:30 PM, Chris Arnold carn...@electrichendrix.com wrote: So the RewriteRule ^/$ http://192.168.123.2 [L] Sends all traffic to 192.168.123.2. I just need http://update.domain.com traffic to go to the 192.168.123.2 host. On

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-09 Thread Daniel Ruggeri
On 7/9/2012 5:03 PM, Chris Arnold wrote: So the RewriteRule ^/$ http://192.168.123.2 [L] Sends all traffic to 192.168.123.2. I just need http://update.domain.com traffic to go to the 192.168.123.2 host. Chris; I think more information is needed... how do clients get to update.domain.com

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-09 Thread Chris Arnold
On Jul 9, 2012, at 6:28 PM, Daniel Ruggeri drugg...@primary.net wrote: On 7/9/2012 5:03 PM, Chris Arnold wrote: So the RewriteRule ^/$ http://192.168.123.2 [L] Sends all traffic to 192.168.123.2. I just need http://update.domain.com traffic to go to the 192.168.123.2 host. Chris; I

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-08 Thread Chris Arnold
So the RewriteRule ^/$ http://192.168.123.2 [L] Sends all traffic to 192.168.123.2. I just need http://update.domain.com traffic to go to the 192.168.123.2 host. On Jul 7, 2012, at 11:50 AM, Chris Arnold carn...@electrichendrix.com wrote: On Jul 7, 2012, at 10:54 AM, Chris Arnold

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-07 Thread Chris Arnold
That's the same as if it ended with a slash, and matched by ^/$ Ok my host file has RewriteRule ^/$ http://update.domain.com [L] When I goto http://update.domain.com using safari, I receive: Response Error. Technical description: 502 Bad Gateway - Response Error, a bad response was received

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-07 Thread Chris Arnold
On Jul 7, 2012, at 10:54 AM, Chris Arnold carn...@electrichendrix.com wrote: That's the same as if it ended with a slash, and matched by ^/$ Ok my host file has RewriteRule ^/$ http://update.domain.com [L] When I goto http://update.domain.com using safari, I receive: Response Error.

[users@httpd] Rewrite Rule Help (again)

2012-07-03 Thread Chris Arnold
Hello list! Apache 2.2.12 on SLES 11 SP2. I need to rewrite/proxy http://updates.domain.com traffic to another server on the LAN. I have a few rewrite rules in my host file now: RewriteRule ^/folder http://%{HTTP_HOST}/folder/ [L] but am not sure how to rewrite without a folder (ie

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-03 Thread Eric Covener
but am not sure how to rewrite without a folder (ie http://updates.domain.com to another server with the same address). That's the same as if it ended with a slash, and matched by ^/$ - To unsubscribe, e-mail:

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-03 Thread Chris Arnold
That's the same as if it ended with a slash, and matched by ^/$ So, RewriteRule ^/$ http://192.168.123.2/ will send just http://updates.domain.com to 192.168.123.2? I don't want all http traffic to go to that server, just http://updates.domain.com.

Re: [users@httpd] Rewrite Rule Help (again)

2012-07-03 Thread Eric Covener
On Tue, Jul 3, 2012 at 5:45 PM, Chris Arnold carn...@electrichendrix.com wrote: That's the same as if it ended with a slash, and matched by ^/$ So, RewriteRule ^/$ http://192.168.123.2/ will send just http://updates.domain.com to 192.168.123.2? I don't want all http traffic to go to that

Re: [users@httpd] Rewrite Rule

2012-03-05 Thread Rainer Frey
On 02.03.2012, at 15:59, Vivek Nambiar wrote: http://servername:port/myapp then it should redirect itself to https://servername:SSLport/myapp. I have added the following rewrite condition and rule in my httpd.conf file RewriteCond %{SERVER_PORT} PORT RewriteRule ^/(.*)$

Re: [users@httpd] Rewrite Rule

2012-03-03 Thread Vivek Nambiar
Hi, Thank you and that works fine,but I would still like to know why rewrite rule does not work.May be I am not using the write parameters??. Regards On Fri, Mar 2, 2012 at 9:08 PM, Mathijs mathijs...@gmail.com wrote: The cleanest way of doing this, doesn't even need mod_rewrite. Just define

Re: [users@httpd] Rewrite Rule

2012-03-02 Thread Mathijs
The cleanest way of doing this, doesn't even need mod_rewrite. Just define two virtualhosts, one for the non-ssl host and one for the ssl host: NameVirtualHost *:80 VirtualHost *:80 ServerName www.example.com Redirect permanent / https://www.example.com/ /VirtualHost NameVirtualHost *:443

Re: [users@httpd] rewrite rule

2012-01-19 Thread Eric Covener
On Wed, Jan 18, 2012 at 11:20 PM, Indraveni chebolu indraveni.cheb...@gmail.com wrote: The HTML look perfectly alright. Doesn't look right to me, your links are all absolute URLs. They aren't going to magically change when you access the server by IP address.

Re: [users@httpd] rewrite rule

2012-01-19 Thread Indraveni chebolu
My links are not absolute. They are all relative paths. When I am changing the RewriteRule then all my links are changing as written in rule rather than rendering as per accessed domain name. On Thu, Jan 19, 2012 at 4:27 PM, Eric Covener cove...@gmail.com wrote: On Wed, Jan 18, 2012 at 11:20

Re: [users@httpd] rewrite rule

2012-01-19 Thread Eric Covener
On Thu, Jan 19, 2012 at 7:36 AM, Indraveni chebolu indraveni.cheb...@gmail.com wrote: My links are not absolute. They are all relative paths. When I am changing the RewriteRule then all my links are changing as written in rule rather than rendering as per accessed domain name. mod_rewrite

Re: [users@httpd] rewrite rule

2012-01-18 Thread Eric Covener
IF I access server.com - all links in my site are with server.com/products, server.com/services etc But I access with 192.168.52.58 - site opens up well , but the links of the pages are server.com/products, server.com/services How can I resolve this ? I mean my site should be linked to its

Re: [users@httpd] rewrite rule

2012-01-18 Thread Indraveni chebolu
The HTML look perfectly alright. If I change the URL to IP also it works good. something like, I can access server.com/products ip/products, both show up correctly. You can check my site at http://cdachyd.in, as well the same with its Ip http://196.12.45.103 When you access with cdachyd.in, all

[users@httpd] rewrite rule

2012-01-17 Thread Indraveni chebolu
Hi all, I have configured apache in front of plone using rewrite rule, Similar configuration as shown here http://nathanvangheem.com/news/plone-with-apache-front-end-on-ubuntu Site is working very fine. But have a small problem. My plone site has all dynamic links, i.e with which ever URL i