[users@httpd] redirect -- project in a subdirectory

2025-02-10 Thread bruce
Hi. Have a test project, and Im getting errs. The foo,conf is vanilla, nothing weird. The test has no .htaccess. I'm getting errs: AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. U

[users@httpd] Redirect to backend with received URL as a parameter

2022-12-20 Thread Moreno Andreo
Hi *     I'm serving some kind of a home page to customers, that has to be mapped to a pre-existent backend, and every "home page" URI is entered in a database table, with the backend URL to be called. What I think I have to do is to redirect with some kind of rewrite with the full URL that was

Re: [users@httpd] Redirect in 443

2022-06-22 Thread Frank Gingras
Use RedirectMatch with a negative lookahead instead to prevent loops. On Wed, 22 Jun 2022 at 05:16, Deepak Goel wrote: > Hello > > How do I create a redirect in 443 port in the apache web server 2? > > I want to redirect the url : > > https://mydomain.com/ > > to > > https://mydomain.com/foo/ >

[users@httpd] Redirect in 443

2022-06-22 Thread Deepak Goel
Hello How do I create a redirect in 443 port in the apache web server 2? I want to redirect the url : https://mydomain.com/ to https://mydomain.com/foo/ Please advise. Thanks. P.S: If I add a redirect statement to the file 000-default-le-ssl.conf - port 443 (Redirect / https://mydomain.com

[users@httpd] Redirect with % character not scape with \ 'backslash', module mod_rewrite.

2022-06-15 Thread Rodrigo Cunha
Hi all, i need redirect all requests from me server to bellow url : https://blob.intranet/bills-&-bills-digibills---ica%25C3%25A7%25C3%25A3o.aspx.aspx I tested it for other urls, like google.com/path, and work fine. But, in the url 'blob.intranet/...' everytime my redirect changes the path from %2

[users@httpd] redirect or rewrite specific html files

2020-02-04 Thread Herb Burnswell
Hi, I am looking for some guidance on how to forward specific html files to a new locations. The motivation is for users who might have bookmarked a no longer current location and best practices for SEO functionality. Here would be an example: Old: https://example.com/old/path/to/old_file.html

Re: [users@httpd] Redirect only if 2 conditions

2019-09-25 Thread Eric Covener
On Wed, Sep 25, 2019 at 6:23 AM Luis Speciale wrote: > > Hi > > I want to redirect (in my local server) all the external visitors that don't > ask for an existing directory. > > !='/Library/WebServer/Documents/YES/'"> > RedirectMatch ^/((?!index_ext.html).*)$ /index_ext.html > > > But AND (

[users@httpd] Redirect only if 2 conditions

2019-09-25 Thread Luis Speciale
Hi I want to redirect (in my local server) all the external visitors that don't ask for an existing directory. !='/Library/WebServer/Documents/YES/'">     RedirectMatch ^/((?!index_ext.html).*)$ /index_ext.html But AND (&&) doesn't seem to work. I'm always redirected to /index_ext.html Wha

Re: [users@httpd] Redirect BookMark Link

2019-02-16 Thread Ajay B
Thanks a lot for reply This helped a lot On Fri 15 Feb, 2019, 11:56 PM Daniel Ferradal Only rewritecond can check query string so, you need a rewritecond to > check for the specific query string you want to check, something like > this would literally do what you ask. > > RewriteCond %{QUERY_STR

Re: [users@httpd] Redirect BookMark Link

2019-02-15 Thread Daniel Ferradal
Only rewritecond can check query string so, you need a rewritecond to check for the specific query string you want to check, something like this would literally do what you ask. RewriteCond %{QUERY_STRING} ^orgId=1 RewriteRule ^/page$ /page?orgId=2 [R,L] El jue., 14 feb. 2019 a las 17:16, Ajay B

[users@httpd] Redirect BookMark Link

2019-02-14 Thread Ajay B
Hi All We have an urgent requirement coming in to redirect the users Bookmarked link Example The users has currently stored https://example.com/page?orgId=1 We need to redirect it to https://example.com/page?orgId=2 Any help here would be appreciated Thanks Ajay

Re: [users@httpd] Redirect vhost, with Wordpress

2018-09-30 Thread Frank Gingras
Your first step is to list the current vhosts with either httpd -S or apachectl -S. Edit accordingly. Also, avoid IP:PORT vhost, and use *:PORT when unsure. Pay attention to your logs, especially if you get a 302 or 301. On Sun, Sep 30, 2018 at 2:42 PM Labs Ocozzi wrote: > I did make somethings

Re: [users@httpd] Redirect vhost, with Wordpress

2018-09-30 Thread Labs Ocozzi
I did make somethings tests, i think this problem is the enviroment.I did deploy a wordpress in other enviroment and restore database and that website work fine. But i did deploy other wordpress in this enviroment and the new project work fine too. But when i restore the database, my wordpress

Re: [users@httpd] Redirect vhost, with Wordpress

2018-09-30 Thread Jonathon Koyle
If you access the server by ip httpd can't differentiate which vhost you are trying to access, so it returns the default. To access a something other than the default you need to include the server name, either as the URL, or maybe you could add it to the request with nginx - before you pass the r

[users@httpd] Redirect vhost, with Wordpress

2018-09-29 Thread Labs Ocozzi
Hi,  i need a help. I depoy a wordpress website in my httpd enviroment lab, and this website redirect my request for default website, i change this website name, from tiblog.domain to blog.domain. I change database(wordpress) but my website not work. When i acess this website from ip:port[192.

Re: [users@httpd] Redirect outside http web-address to an internal web-address

2018-06-21 Thread Eric Covener
> I’ve configured the apache as a reverse proxy and the external company can > connect to the application, but the problem is that every > time the internal address “confluence.internal.de” shows up external what > shouldn’t do. It should show the external link “confluence.external.de” Maybe htt

[users@httpd] Redirect outside http web-address to an internal web-address

2018-06-21 Thread Gust, Thorsten
Hi All, I tried to create follows configuration within our environment, but can’t find a working solution for that case, maybe some has an idea !?! We have an external company which is connected via VPN to our network. Internal we have two applications (Confluence/Jira) deployed with tomcat and

Re: [users@httpd] Redirect Permanent

2018-06-14 Thread Frank Gingras
You would need to use mod_macro in this case. On Thu, Jun 14, 2018 at 11:50 AM David Tkacik < dtka...@healthcoachinstitute.com> wrote: > Hey Guys, > > I’m running Apache/2.4.33 on RHEL > > I have this config: > > > ServerName "${APACHE_HOSTNAME}" > > Redirect permanent / https://${APACHE_HOSTNA

[users@httpd] Redirect Permanent

2018-06-14 Thread David Tkacik
Hey Guys, I’m running Apache/2.4.33 on RHEL I have this config: ServerName "${APACHE_HOSTNAME}" Redirect permanent / https://${APACHE_HOSTNAME}/ ServerName "${APACHE_HOSTNAME}" When I do CURL to that localhost on port 80 it gives me back this: 301 Moved Pe

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-28 Thread Daniel
Without having a clear picture of everything in your config context wise is hard to tell. So seeing as you are using .htaccess which adds complexity perhaps you need to examine what's going one behind the scenes with rewrite debugging: See https://wiki.apache.org/httpd/RewriteLog 2018-01-27 1:49

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-26 Thread Kory Wheatley
Thanks for your response Daniel... I tried your suggestion but it didn't seem to work RewriteRule ^/deptblogs/$ http://intranet/template_ departments.cfm [R,L] See below thank your for troubleshoot do I need to maybe put the redirectmatch in the httpd.con RewriteEngine On RewriteBase /deptblogs

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-25 Thread Daniel
I'm with Luca here. A simple redirectmatch would do what you seek. RedirectMatch ^/deptblogs/$ http://intranet/template_departments.cfm Let PHP do complex stuff and let requests for simple paths be handled with simple httpd directives, or at least, that's why I would do to not lose hair in the p

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-25 Thread Marat Khalili
On 24/01/18 22:53, Kory Wheatley wrote: Ya there is a .htaccess that has the base set to deptblogs what could I change in here to get it to work? [kwheatley@sftpface2 wordpress]$ cat .htaccess RewriteEngine On RewriteBase /deptblogs/ RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-24 Thread Kory Wheatley
Ya there is a .htaccess that has the base set to deptblogs what could I change in here to get it to work? [kwheatley@sftpface2 wordpress]$ cat .htaccess RewriteEngine On RewriteBase /deptblogs/ RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/m

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-21 Thread Marat Khalili
On 18/01/18 07:53, Kory Wheatley wrote: When someone types to go to http://sftpinterface/deptblogs/  or a link I need it to redirect to http://intranet/template_departments.cfm. Which I was able to accomplish in the index.php header content with http://intranet/template_departments.cfm";); /*

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-21 Thread Adam Powell
Have you read this document? https://httpd.apache.org/docs/trunk/rewrite/avoid.html -Adam Powell > On Jan 19, 2018, at 3:33 AM, Luca Toscano wrote: > > Hi Kory, > > 2018-01-18 5:53 GMT+01:00 Kory Wheatley : >> When someone types to go to http://sftpinterface/deptblogs/ or a link I >> need it

Re: [users@httpd] Redirect only a specific index.php page to new location

2018-01-19 Thread Luca Toscano
Hi Kory, 2018-01-18 5:53 GMT+01:00 Kory Wheatley : > When someone types to go to http://sftpinterface/deptblogs/ or a link I > need it to redirect to http://intranet/template_departments.cfm. Which I > was able to accomplish in the index.php header content with > > /* Redirect browser */ > he

[users@httpd] Redirect only a specific index.php page to new location

2018-01-17 Thread Kory Wheatley
When someone types to go to http://sftpinterface/deptblogs/ or a link I need it to redirect to http://intranet/template_departments.cfm. Which I was able to accomplish in the index.php header content with http://intranet/template_departments.cfm";); /* Make sure that code below does not get exe

Re: [users@httpd] Redirect SITEB to SITEA while maintaining SITEB address in browser

2017-10-16 Thread Daniel
What you are mentioning is not a Redirect, but a Reverse Proxy. mod_proxy and the corresponding mod_proxy_http can help you with that. If you need further info you can check: http://httpd.apache.org/docs/2.4/howto/reverse_proxy.html and: http://httpd.apache.org/docs/2.4/mod/mod_proxy.html 2017-

[users@httpd] Redirect SITEB to SITEA while maintaining SITEB address in browser

2017-10-06 Thread Drill Brain
Low hour apache user. Hosting is godaddy on a unix share, apache 2.4.3-25. Web content languages used are perl and php. We own several Domains that serve local markets. These sites are essentially identical save for the content tweaked for the local user. Right now, both pages served and

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Daniel
Sorry didn't have Gmail synced! :-) El 27 jun. 2017 12:59 a. m., "Nigel Peck" escribió: > On 26/06/2017 17:58, Daniel wrote: > >> Nigel, either I misunderstood you but Redirect redirects everything after >> the matched part and appends the rest to the target >> > > Yes, agreed, it was by mistak

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Nigel Peck
On 26/06/2017 17:58, Daniel wrote: Nigel, either I misunderstood you but Redirect redirects everything after the matched part and appends the rest to the target Yes, agreed, it was by mistake, Daniel. See subsequent emails from Eric. Nigel -

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Daniel
Nigel, either I misunderstood you but Redirect redirects everything after the matched part and appends the rest to the target So the first example does the same as the second, it was just missing a trailing slash. El 26 jun. 2017 11:58 p. m., "Nigel Peck" escribió: > On 26/06/2017 16:56, Felipe

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Nigel Peck
On 26/06/2017 17:00, Eric Covener wrote: On Mon, Jun 26, 2017 at 5:58 PM, Nigel Peck wrote: They wouldn't redirect in the same way, but it would be the same type of redirect. Since the second one preserves the page on the site that it is redirecting, which is a very big difference. That's not

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Eric Covener
On Mon, Jun 26, 2017 at 6:00 PM, Eric Covener wrote: > That's not correct. Redirect carries the URL over [modulo the > trailing slash issue Daniel caught]. RedirectMatch doesn't Unless you explicitly use a capture/backreference, of course. ---

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Eric Covener
On Mon, Jun 26, 2017 at 5:58 PM, Nigel Peck wrote: > They wouldn't redirect in the same way, but it would be the same type of > redirect. Since the second one preserves the page on the site that it is > redirecting, which is a very big difference. That's not correct. Redirect carries the URL ove

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Nigel Peck
On 26/06/2017 16:56, Felipe Pereira wrote: Yes. In the second line you could use R=permanent or R=301 so they would redirect the same way. They wouldn't redirect in the same way, but it would be the same type of redirect. Since the second one preserves the page on the site that it is redirect

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Felipe Pereira
2017-06-26 17:08 GMT-03:00 Nigel Peck : > > Sorry, one other point, using `[R]` in number two will generate a 302 > redirect whereas the first, using the permanent keyword, will generate a 301 Yes. In the second line you could use R=permanent or R=301 so they would redirect the same way. http:/

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Nigel Peck
Sorry, one other point, using `[R]` in number two will generate a 302 redirect whereas the first, using the permanent keyword, will generate a 301. On 26/06/2017 15:07, Nigel Peck wrote: Also note that the first one will always redirect to the root of the target domain, but the second one

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Nigel Peck
Also note that the first one will always redirect to the root of the target domain, but the second one will redirect to the same page on the target domain. First one: (taking Daniel's comment in to account) /example redirects to http://www.domain.com/ Second one: /example redirects to http

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Daniel
Note the first one (the redirect) will probably redirect incorrectly, target should end with a trailing slash. Golden rule: if souce ends in trailing slash, target must also end in trailing slash. 2017-06-26 21:23 GMT+02:00 Eric Covener : > On Mon, Jun 26, 2017 at 3:16 PM, David Mehler wrote: >>

Re: [users@httpd] redirect vs. rewrite

2017-06-26 Thread Eric Covener
On Mon, Jun 26, 2017 at 3:16 PM, David Mehler wrote: > I'm using apache 2.4. What is the difference between these lines? > > Redirect permanent / http://www.domain.com > RewriteRule ^/?(.*) http://www.domain.com/$1 [R,L] Nothing really, when you add the 'R' flag you're asking mod_rewrite to r

[users@httpd] redirect vs. rewrite

2017-06-26 Thread David Mehler
Hello, I'm using apache 2.4. What is the difference between these lines? Redirect permanent / http://www.domain.com RewriteRule ^/?(.*) http://www.domain.com/$1 [R,L] They both redirect. Thanks. Dave. - To unsubscribe, e-ma

Re: [users@httpd] Redirect all unconfigured sub-domains to specific sub-domain

2017-05-15 Thread James Smith
You really only have one option at the moment and that is to pay for a wild card certificate which will do this {lets encrypt doesn't allow you yet} It will probably set you back something like 100$ a year o/w you will need to set your redirects up from xxx. to https:// individually a

[users@httpd] Redirect all unconfigured sub-domains to specific sub-domain

2017-05-15 Thread Torge Riedel
Hi, I'm using Apache 2.2 and currently have the following configuration files: 00-default-> redirect non-https-URLs to https-URLs 00-default-ssl -> default configuration for https://mydomain.de and https://www.mydomain.de Then several files 20-sub.mydomain.de

Re: [users@httpd] redirect port from 80 to 443

2017-02-20 Thread Nick Kew
On Mon, 2017-02-20 at 11:56 +0300, Marat Khalili wrote: > It's very insightful, but what other _general purpose_ tool do we have > here? Correct me if I'm wrong, but seems like URL rewrite C (let alone > Python) is not yet created. Wrong question. URL rewriting isn't a problem you look to solv

Re: [users@httpd] redirect port from 80 to 443

2017-02-20 Thread Marat Khalili
On 20/02/17 11:01, Nick Kew wrote: it's commonly used as a hacked-up scripting language comprisising just two main instructions (single IF aka RewriteCond, and GOTO aka RewriteRule) with side-effects. [...] By analogy, when I got my first programming job in the 1980s, there was still lots of anci

Re: [users@httpd] redirect port from 80 to 443

2017-02-20 Thread Nick Kew
On Sun, 2017-02-19 at 20:27 +0300, Marat Khalili wrote: > "When not to use mod_rewrite" page was probably written by people > frustrated with too many examples of incorrect mod_rewrite > configurations in this forum. Actually it was largely written by the same people who wrote the mod_rewrite doc

Re: [users@httpd] redirect port from 80 to 443

2017-02-19 Thread Marat Khalili
Just a personal opinion: mod_rewrite is perfectly fine as long as you know it well, and any Apache admin will have to learn and use it eventually. If you can accomplish your task with one powerful module you already know, learning "simpler" modules and enabling them on your server is both silly

Re: [users@httpd] redirect port from 80 to 443

2017-02-18 Thread Michael A. Peters
Most of my hosts are HTTPS only - I do have one host that allows port 80 for a yum package repository, https isn't needed there because the packages themselves are signed and yum validates them on the client side before installing. This is an example of what I do: ServerName librelamp.com Re

Re: [users@httpd] redirect port from 80 to 443

2017-02-18 Thread Spork Schivago
Sorry to butt in here. I've been following this post with some interest. I wanted to accomplish the same thing the original OP wanted to accomplish, redirect all traffic to the secure version of my site. I went to the internet and found directions on how to do this using mod_rewrite rules.

Re: [users@httpd] redirect port from 80 to 443

2017-02-18 Thread Dr James Smith
As I only run HTTPS - I have the following on port 80 - (this can't be done with redirect) ... ... ... RewriteEngine on RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=permanent,L,NE] So I only have one po

Re: [users@httpd] redirect port from 80 to 443

2017-02-18 Thread Daniel
Yes please, let's stay away of convoluted and most times innecessary mod_rewrite examples to do simpleton configurations. If you are in virtualhost 80, you have specified servername correctly and you just want to redirect to ssl, why not a single Redirect statement? As Yann's refered document say

Re: [users@httpd] redirect port from 80 to 443

2017-02-18 Thread Richard
> Date: Saturday, February 18, 2017 11:04:34 -0700 > From: James Moe > > On 02/18/2017 05:08 AM, Rodrigo Cunha wrote: >> i want redirect all request from port 80 to 443. >> what is better setting for fix this? >> > Better than what? > Fix? Is it broken? > > RewriteCond %{HTTP_HOST} =www.ex

Re: [users@httpd] redirect port from 80 to 443

2017-02-18 Thread Rodrigo Cunha
My redirect and my website is work in https port but my webserver not display the styles maked in css. Do you help-me? 2017-02-18 16:04 GMT-02:00 James Moe : > On 02/18/2017 05:08 AM, Rodrigo Cunha wrote: > > i want redirect all request from port 80 to 443. > > what is better setting for fix th

Re: [users@httpd] redirect port from 80 to 443

2017-02-18 Thread James Moe
On 02/18/2017 05:08 AM, Rodrigo Cunha wrote: > i want redirect all request from port 80 to 443. > what is better setting for fix this? > Better than what? Fix? Is it broken? RewriteCond %{HTTP_HOST} =www.example.com RewriteCond %{SERVER_PORT} =80 RewriteRule ^(.*)$ https://www.example.com/$1 [

Re: [users@httpd] redirect port from 80 to 443

2017-02-18 Thread Yann Ylavic
Hi, On Sat, Feb 18, 2017 at 1:08 PM, Rodrigo Cunha wrote: > Dears, i want redirect all request from port 80 to 443. > what is better setting for fix this? https://httpd.apache.org/docs/2.4/rewrite/avoid.html#redirect - To unsub

[users@httpd] redirect port from 80 to 443

2017-02-18 Thread Rodrigo Cunha
Dears, i want redirect all request from port 80 to 443. what is better setting for fix this? -- Atenciosamente, Rodrigo da Silva Cunha São Gonçalo, RJ - Brasil

Re: [users@httpd] Redirect Applies to All Virtual Hosts

2017-01-22 Thread Eric Covener
apachectl -S summarizes pretty nicely. On Sun, Jan 22, 2017 at 7:27 PM, Eric Covener wrote: > On Sun, Jan 22, 2017 at 7:21 PM, Jerry Malcolm wrote: >> And from what I understand, the redirect in the block above should ONLY >> apply if the http://www.mydomain.com request is received and definitel

Re: [users@httpd] Redirect Applies to All Virtual Hosts

2017-01-22 Thread Eric Covener
On Sun, Jan 22, 2017 at 7:21 PM, Jerry Malcolm wrote: > And from what I understand, the redirect in the block above should ONLY > apply if the http://www.mydomain.com request is received and definitely NOT > if an http:XYZ.com request is received. But obviously I'm missing > something. Why does

[users@httpd] Redirect Applies to All Virtual Hosts

2017-01-22 Thread Jerry Malcolm
I'm trying to do a simple redirect of http://www.mydomain.com to https://mydomain.com. I am using the WAMP package wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-64b. In the httpd.conf for the domain in question, I added: ServerName www.mydomain.com Redirect perm

Re: [users@httpd] Redirect apache proxy 404 request to specific page

2016-06-23 Thread Luca Toscano
2016-06-23 12:12 GMT+02:00 Manish Rangari : > Hello Luca, > > Thanks for your solution. This pretty much took care of the problem. But I > noticed that on even 404 error apache is not showing 404 but it is showing > 200 in access log. Is it correct? > This seems definitely wrong :) What status co

Re: [users@httpd] Redirect apache proxy 404 request to specific page

2016-06-23 Thread Manish Rangari
Hello Luca, Thanks for your solution. This pretty much took care of the problem. But I noticed that on even 404 error apache is not showing 404 but it is showing 200 in access log. Is it correct? On Jun 23, 2016 2:54 PM, "Luca Toscano" wrote: > Hello! > > 2016-06-22 19:03 GMT+02:00 Manish Rangar

Re: [users@httpd] Redirect apache proxy 404 request to specific page

2016-06-23 Thread Luca Toscano
Hello! 2016-06-22 19:03 GMT+02:00 Manish Rangari : > Hello Guys, > > > > > down votefavorite > > > > I am trying to specify a page for 404 request but it is not working. Here > apache is acting as a

[users@httpd] Redirect apache proxy 404 request to specific page

2016-06-22 Thread Manish Rangari
Hello Guys, down votefavorite I am trying to specify a page for 404 request but it is not working. Here apache is acting as a reverse proxy which forwards the request to tomcat. I am not using an

[users@httpd] Redirect

2016-05-09 Thread Temp Temp
Hi All Need help to trace how the redirect is happening We are using apache 2.2.15 webserver with some dynamic content coming from python. Apache is running in Unix environment. Business team uses a URL to edit the product data. Business team uses this URL with in the network. If they try to use

[users@httpd] Redirect Sites with SSL and Client Ceritifcate.

2016-01-29 Thread Rubén Toribio Aldeguer
Good guys. I have this settings apache and pretend that requests made to the site www.mysite.example.com be redirected to the site mysite.example.com (without the www). Both sites have different certificates (crt, key and providers) if I test it in an integration server, (for which I am oblige

Re: [users@httpd] Redirect[Match] behind load-balancer switching protocols

2015-11-18 Thread Yann Ylavic
On Tue, Nov 17, 2015 at 10:06 PM, Christopher Schultz wrote: > > Is there another environment variable or other setting that I need to > use in order to override httpd's protocol-detection? You could specify: Protocol https in the corresponding VirtualHost section. Regards, Yann. --

Re: [users@httpd] Redirect[Match] behind load-balancer switching protocols

2015-11-17 Thread Igor Cicimov
Hi Christopher, On Wed, Nov 18, 2015 at 8:06 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > All, > > The docs for the Redirect directive state that a slash-prefixed > replacement URL (relative) will use the current request's scheme and > hostname to build the redirect URL. > > R

[users@httpd] Redirect[Match] behind load-balancer switching protocols

2015-11-17 Thread Christopher Schultz
All, The docs for the Redirect directive state that a slash-prefixed replacement URL (relative) will use the current request's scheme and hostname to build the redirect URL. RedirectMatch doesn't say specifically, but what I'm observing is that: RedirectMatch permanent ^/$ /foo/ ... when reques

Re: [users@httpd] redirect q

2015-09-29 Thread Kurtis Rader
On Tue, Sep 29, 2015 at 6:19 PM, K R wrote: > I am trying to force redirect HTTP to HTTPS as below > > RewriteEngine On > RewriteCond %{HTTPS} !=on > RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] > > but it fails with too many redirect error . > Did you google "apache https redirect"? Th

[users@httpd] redirect q

2015-09-29 Thread K R
Hi, I am trying to force redirect HTTP to HTTPS as below RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] but it fails with too many redirect error . appreciate any help . thanks Kart

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2015 06:55 PM, Kurtis Rader wrote: > The config you sent us does not have a vhost for port 443. > Erm. Here it is. None of this explains why rewrite is disabled. - [ SSL vhost ] ## ## SSL Virtual Host Context ## # Some MIME-ty

Re: [users@httpd] ReDirect question

2015-06-27 Thread Kurtis Rader
On Sat, Jun 27, 2015 at 6:39 PM, James Moe wrote: > On 06/27/2015 06:26 PM, Eric Covener wrote: > >>> AllowOverride All > > same in https vhost? > > > Yes. The config you sent us does not have a vhost for port 443. For virtual host on port 80 the first RewriteRule redirects to port 443. So y

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2015 06:26 PM, Eric Covener wrote: >>> AllowOverride All > same in https vhost? > Yes. - -- James Moe moe dot james at sohnen-moe dot com 520.743.3936 -BEGIN PGP SIGNATURE- Version: GnuPG v2 iEYEARECAAYFAlWPUGAACgkQzTcr8Prq0ZMLXQ

Re: [users@httpd] ReDirect question

2015-06-27 Thread Eric Covener
On Sat, Jun 27, 2015 at 7:45 PM, James Moe wrote: > AllowOverride All same in https vhost? -- Eric Covener cove...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: us

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2015 06:16 PM, Kurtis Rader wrote: > What happens if you remove the Redirect directive? > I get a 404 for . - -- James Moe moe dot james at sohnen-moe dot com 520.743.3936

Re: [users@httpd] ReDirect question

2015-06-27 Thread Eric Covener
On Sat, Jun 27, 2015 at 9:16 PM, Kurtis Rader wrote: > Okay, the Apache documentation says that the Redirect directive has > precedence over Alias and ScriptAlias directives. It doesn't say anything > about RewriteRule directives. But I'm willing to bet that's the problem > since it would be stran

Re: [users@httpd] ReDirect question

2015-06-27 Thread Kurtis Rader
On Sat, Jun 27, 2015 at 6:03 PM, James Moe wrote: > $ curl -v "http://sma-v3.sma.com/catalog/?testing=123"; > * Trying 192.168.69.246... > * Connected to sma-v3.sma.com (192.168.69.246) port 80 (#0) > > GET /catalog/?testing=123 HTTP/1.1 Host: sma-v3.sma.com User-Agent: > > curl/7.42.1 Accept:

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2015 05:32 PM, Kurtis Rader wrote: > Try adding another rewrite rule to the .htaccess. For example, > > RewriteCond %{QUERY_STRING} =testing=123 RewriteRule ^ . [F] > $ curl -v "http://sma-v3.sma.com/catalog/?testing=123"; * Trying 192.16

Re: [users@httpd] ReDirect question

2015-06-27 Thread Kurtis Rader
On Sat, Jun 27, 2015 at 4:45 PM, James Moe wrote: > [ from the vhost file ] > > ... > > # Always use a secure connection > RewriteEngine On > RewriteCond %{SERVER_PORT} =80 > RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] > That rewrite rule should retain the query

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
On 06/27/2015 04:36 PM, Kurtis Rader wrote: > You still haven't shown us your .htaccess. > Here it is. [ .htaccess ] # Options +ExecCGI +FollowSymLinks # # 20110723 jmm: Some RewriteRule's are in the vhost conf file. # # begin infusionsoft # 20150623 jmm: The transfer to InfusionSof

Re: [users@httpd] ReDirect question

2015-06-27 Thread Kurtis Rader
On Sat, Jun 27, 2015 at 4:25 PM, James Moe wrote: > On 06/27/2015 03:51 PM, Eric Covener wrote: > > If your rules are in htaccess, AllowOverride can't be "none" > > > It is now set to "All" in the conf file. > It should not be needed in the .htacess file, correct? > > > and you actually have

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2015 03:51 PM, Eric Covener wrote: > If your rules are in htaccess, AllowOverride can't be "none" > It is now set to "All" in the conf file. It should not be needed in the .htacess file, correct? > and you actually have to request someth

Re: [users@httpd] ReDirect question

2015-06-27 Thread Eric Covener
On Sat, Jun 27, 2015 at 6:37 PM, James Moe wrote: > module_rewrite is being loaded. What are other preconditions for a > functioning rewrite capability? If your rules are in htaccess, AllowOverride can't be "none" and you actually have to request somethng that maps beneath that directory. Rewrit

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2015 03:14 PM, Kurtis Rader wrote: > Say what? You said earlier that other rewrite rules in the same > section were working. It was just this one rule that wasn't > working. Which is it? > Argh! I was mistaken about rewrite working: It is n

Re: [users@httpd] ReDirect question

2015-06-27 Thread Kurtis Rader
On Sat, Jun 27, 2015 at 3:04 PM, James Moe wrote: > Here is the access_log entry: > 192.168.69.115 - - [27/Jun/2015:14:45:22 -0700] "GET > /clickcart/?app=ecom&ns=catshow&ref=books HTTP/1.1" 200 30062 > > It looks like "%r" is already part of the default LogFormat. (Is > there a way to see wh

Re: [users@httpd] ReDirect question

2015-06-27 Thread Kurtis Rader
On Sat, Jun 27, 2015 at 2:31 PM, James Moe wrote: > I am starting to feel exceedingly incompetent... > I added dumpio to the loadmodule list, restarted httpd. There is > still no additional logging output. > You're looking in the error log file? Did you enable debug log output? You need this

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2015 12:00 PM, Kurtis Rader wrote: > if you simply define a CustomLog that includes the "%r" format > string so that the entire URI ends up in the access log. > Here is the access_log entry: 192.168.69.115 - - [27/Jun/2015:14:45:22 -0700] "

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2015 02:08 PM, Kurtis Rader wrote: > Did you add or uncomment the appropriate LoadModule line? For > example, from my config: > I am starting to feel exceedingly incompetent... I added dumpio to the loadmodule list, restarted httpd. There

Re: [users@httpd] ReDirect question

2015-06-27 Thread Kurtis Rader
On Sat, Jun 27, 2015 at 1:58 PM, James Moe wrote: > On 06/27/2015 12:00 PM, Kurtis Rader wrote: > > > > > I guess this build did not include dumpio_module. Adding the above > produced no additional logging. Did you add or uncomment the appropriate LoadModule line? For example, from my config

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/27/2015 12:00 PM, Kurtis Rader wrote: > > I guess this build did not include dumpio_module. Adding the above produced no additional logging. - -- James Moe moe dot james at sohnen-moe dot com 520.743.3936 -BEGIN PGP SIGNATURE- Versi

Re: [users@httpd] ReDirect question

2015-06-27 Thread Kurtis Rader
On Sat, Jun 27, 2015 at 11:42 AM, James Moe wrote: > - I added "LogLevel info rewrite:trace6" to the VirtualHost section > - The rewrite rule in <.htaccess> > - An excerpt from the error log: > [...] referer: > https://sma-v3.sma.com/clickcart/?app=ecom&ns=catshow&ref=books > > There is nothing

Re: [users@httpd] ReDirect question

2015-06-27 Thread Kurtis Rader
On Sat, Jun 27, 2015 at 11:42 AM, James Moe wrote: > - I added "LogLevel info rewrite:trace6" to the VirtualHost section > - The rewrite rule in <.htaccess> > RewriteEngine on > RewriteCond %{QUERY_STRING} =app=ecom&ns=catshow&ref=books > RewriteRule ^ > > https://ya250.infusionsoft.com/app/store

Re: [users@httpd] ReDirect question

2015-06-27 Thread Eric Covener
On Sat, Jun 27, 2015 at 2:42 PM, James Moe wrote: > If I read the docs correctly about LogLevel, the above rewrite is > being totally ignored since nothing the error log contains the string > "rewrite". AllowOverride for that htaccess? -- Eric Covener cove...@gmail.com -

Re: [users@httpd] ReDirect question

2015-06-27 Thread James Moe
On 06/25/2015 10:16 PM, James Moe wrote: > apache v2.4.10 linux v3.16.7-21-desktop x86_64 > Here is the current state of my non-working rewrite: - I added "LogLevel info rewrite:trace6" to the VirtualHost section - The rewrite rule in <.htaccess> RewriteEngine on RewriteCond %{QUERY_STRING} =ap

Re: [users@httpd] ReDirect question

2015-06-27 Thread Kurtis Rader
On Fri, Jun 26, 2015 at 10:15 PM, James Moe wrote: > The rewrite is in <.htaccess>. Other rewrites work as expected. > Okay then I feel quite confident in concluding the query string is not in the form you expect. So I'll reinforce my earlier point that it is never a good idea to perform a mat

Re: [users@httpd] ReDirect question

2015-06-26 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/26/2015 06:36 PM, Kurtis Rader wrote: > So I submit to you that either the query string is not in the form > you expect or there is something else wrong with your > configuration. For example, perhaps you have the rewrite rule in > the wrong cont

Re: [users@httpd] ReDirect question

2015-06-26 Thread Kurtis Rader
On Fri, Jun 26, 2015 at 4:12 PM, James Moe wrote: > That is how our current shopping cart generates an URL to locate a > page. It is completely predictable. I wish to match the Query String > exactly as a string; I do not care about names and values. > We are transitioning to another e-commer

Re: [users@httpd] ReDirect question

2015-06-26 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/26/2015 01:36 PM, Kurtis Rader wrote: > My question for James would be how do you know the query string has > the parameters in that exact order? > That is how our current shopping cart generates an URL to locate a page. It is completely predi

  1   2   >