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
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
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
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
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 (.*)
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
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
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
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
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
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 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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
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.
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
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
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
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
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
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
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
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
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
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
...@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
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
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
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
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
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
@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
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
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 ^/$
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
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
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
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
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
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
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
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.
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
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:
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.
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
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 ^/(.*)$
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
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
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.
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
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
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
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
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
77 matches
Mail list logo