Re: [users@httpd] adding footer to all web pages

2017-05-25 Thread Adam Powell
Google Analytics, by default, only tracks pages by path.

Meaning if you add a Google Analytics snippet to all virtual hosts visitors
to the home page of each site will be almost impossible to distinguish from
each other in the reports...there are ways around this but you should be
aware of it.

I believe you'll want to review the documentation for server side includes
(SSI).

Adam Powell
http://www.adaminfinitum.com


On Thu, May 25, 2017 at 9:32 PM, Rose, John B  wrote:

> If we wanted to add a Google Analytics footer to all pages on our server,
> meaning all virtual hosts, what is the best way to do that via Apache
> without having to touch the individual web sites?
>


[users@httpd] adding footer to all web pages

2017-05-25 Thread Rose, John B
If we wanted to add a Google Analytics footer to all pages on our server, 
meaning all virtual hosts, what is the best way to do that via Apache without 
having to touch the individual web sites?


Re: [users@httpd] 'found' mod_proxy_html and mod_ssl

2017-05-25 Thread Eric Covener
On Thu, May 25, 2017 at 7:56 PM, Jeff Cauhape  wrote:
> Ok,

> I did eventually figure out that these modules were created (or not)
>
> by the configure script. Is this true of all of the modules supported
>
> by Apache that aren’t core functionality?

It's complicated. If you don't ask for specific modules when you
configure, some will only be built if their dependencies are available
on the system.


-- 
Eric Covener
cove...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] 'found' mod_proxy_html and mod_ssl

2017-05-25 Thread Jeff Cauhape
Ok,

I did eventually figure out that these modules were created (or not)
by the configure script. Is this true of all of the modules supported
by Apache that aren't core functionality?

Jeff Cauhape
IT Professional III
Department of Employment, Training and Rehabilitation
Phone 1-775-684-3804
Email: jpcauh...@nvdetr.org



Re: [users@httpd] Getting PHP-FPM working

2017-05-25 Thread Daniel
Thanks for sharing your findings!

El 25 may. 2017 8:03 p. m., "John Iliffe"  escribió:

> Didn't get a lot of help on the PHP list but the one fellow who tried is
> still running PHP-5.  So, I backed off to PHP-5.6.30 which is the most
> recent stable version of PHP-5 and it worked perfectly.
>
> If you look at the PHP-7.1.3 or 7.1.5 source in fpm_main.c there is a lot
> of commentary about being unable to recover the various script paths when
> called from Apache.  This is where the problem that I encountered was.
>
> So, there are a few updates required to the Apache documentation, as found
> in the fpm wiki:
>
> 1.   don't use PHP-7 fpm since as of right now it won't work.  A good
> programmer (not me!) might be able to fix it but then you would have a one-
> off and would have to support yourself.
>
> 2.   be careful, the ProxyPassMatch value for fcgi://  should not contain a
> trailing '/'  because it leads to double '//' in the path recovered by php-
> fpm.
>
> eg:
>
>  ProxyPassMatch "^/.*\.php(/.*)?$" fcgi://127.0.0.1:9000/
>
> and NOT:
>
>  ProxyPassMatch "^/.*\.php(/.*)?$" fcgi://127.0.0.1:9000//
>
> This will work on UNIX based systems but seems to confuse php-fpm.
>
> John
> 
> On Monday 22 May 2017 05:49:13 Christian Hettler wrote:
> > Hello John,
> >
> > I think you should try it on an php related list.
> >
> > sorry,
> >
> > Christian
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


RE: [users@httpd] Looking for direction: porting server from Apache 2.2.2 to 2.4.6 - ProxyHTMLURLMap ?

2017-05-25 Thread Jeff Cauhape
I don’t think I’m a stupid person, nor do I think I am blind, but
I am unable to find the location at the apache.org site where I
can down load the source code for modules, such as mod_proxy_html.

The only download location I see is for either downloading
Apache itself (done that, and have built it), or for 2 or 3 particular
modules (mod_fcgid, mod_ftp).

When I look at the source distribution for Apache 2.4.25, I do
find some files for mod_proxy_html, but they are for a Windows build.

I went to the webthing site, and they suggest getting the code from
apache.org as it’s more up to date. Arg…..

If someone could throw me a clue as to HOW to find the source
for the modules that are supposed to be supported, I would greatly
appreciate it.

Thanks,

Jeff

From: Luca Toscano [mailto:toscano.l...@gmail.com]
Sent: Thursday, April 27, 2017 1:10 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Looking for direction: porting server from Apache 
2.2.2 to 2.4.6 - ProxyHTMLURLMap ?

Hi Jeff,

2017-04-26 19:35 GMT+02:00 Jeff Cauhape 
mailto:jpcauh...@nvdetr.org>>:
Hi,

I’ve been given the task of moving a website from Apache 2.2.2 on Solaris to 
Apache 2.4.6 on Linux.

So far, so good, but I’m running into a ‘syntax’ error when a config file uses 
the ProxyHTMLURLMap
function. Apache 2.4.6 does not recognize this, and I don’t have the module 
(proxy_html_module /
mod_proxy_html.so) required to support it.

So… should I substitute calls to ProxyHTMLURLMap to some other function in 
2.4.6 (if so which),
or if not, where can I get the compiled function or source code?  From my take 
on the doc, proxy_html_module
is supposed to be available, but is not included. It would be handy to know 
where I can get the source
and compile my own, if that’s the way to go.

Thanks in advance for any tips or suggestions,

mod_proxy_html is included in the official httpd release so you can easily find 
it in https://httpd.apache.org. I think that your distribution might offer it 
under a separate package, but it is difficult to say without more info.

Hope that helps!

Luca


Re: [users@httpd] Getting PHP-FPM working

2017-05-25 Thread John Iliffe
Didn't get a lot of help on the PHP list but the one fellow who tried is 
still running PHP-5.  So, I backed off to PHP-5.6.30 which is the most 
recent stable version of PHP-5 and it worked perfectly.

If you look at the PHP-7.1.3 or 7.1.5 source in fpm_main.c there is a lot 
of commentary about being unable to recover the various script paths when 
called from Apache.  This is where the problem that I encountered was.

So, there are a few updates required to the Apache documentation, as found 
in the fpm wiki:  

1.   don't use PHP-7 fpm since as of right now it won't work.  A good 
programmer (not me!) might be able to fix it but then you would have a one-
off and would have to support yourself.

2.   be careful, the ProxyPassMatch value for fcgi://  should not contain a 
trailing '/'  because it leads to double '//' in the path recovered by php-
fpm.

eg:

 ProxyPassMatch "^/.*\.php(/.*)?$" fcgi://127.0.0.1:9000/ 

and NOT:

 ProxyPassMatch "^/.*\.php(/.*)?$" fcgi://127.0.0.1:9000//

This will work on UNIX based systems but seems to confuse php-fpm. 

John

On Monday 22 May 2017 05:49:13 Christian Hettler wrote:
> Hello John,
> 
> I think you should try it on an php related list.
> 
> sorry,
> 
> Christian
> 

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org