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] Help. DSOs not being built from source? Apache 2.4.12 & CentOS 7 (x86_64)

2015-06-27 Thread Anthony Rutledge
I do not think the --prefix option is the key. They key is probably the order of the options.My final ./configure line (broken up line by line). cd httpd-2.4.12/ mkdir -v srclib/apr/ srclib/apr-util/ mv -v ../apr-1.5.2/* srclib/apr/ mv -v ../apr-util-1.5.4/* srclib/apr-util/ ./configure --enable-m

Re: [users@httpd] Help. DSOs not being built from source? Apache 2.4.12 & CentOS 7 (x86_64)

2015-06-27 Thread Anthony Rutledge
Thanks for the reply, Jeff. My source install is 100% scripted (bash), from using wget to download tarballs, extracting the tarballs with tar, copying apr and apr-utils under ../srclib, and so on. However, the first very  thing it does is delete all previous files that were installed. Would I st

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] Help. DSOs not being built from source? Apache 2.4.12 & CentOS 7 (x86_64)

2015-06-27 Thread Jeff Trawick
On 06/27/2015 10:53 AM, Anthony Rutledge wrote: DSOs not being built from source? Apache 2.4.12 & CentOS 7 (x86_64) This is a good question for those who are experts at installing Apache 2.4.12 from source. First, no errors are being generated. My "configure, make, make install" sequence suc

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

[users@httpd] Help. DSOs not being built from source? Apache 2.4.12 & CentOS 7 (x86_64)

2015-06-27 Thread Anthony Rutledge
DSOs not being built from source? Apache 2.4.12 & CentOS 7 (x86_64) This is a good question for those who are experts at installing Apache 2.4.12 from source. First, no errors are being generated. My "configure, make, make install" sequence successfully creates a /usr/local/apache2/ directory.Sec

Re: [users@httpd] Using LogLevel?

2015-06-27 Thread Pete Houston
If you look carefully at the documentation at http://httpd.apache.org/docs/2.4/mod/core.html#loglevel you will see that it says: Context:server config, virtual host, directory The absense of ".htaccess" from that list indicates that it cannot be set in the .htaccess file. Set it i