[users@httpd] Set response header based on another response header?

2013-04-03 Thread Esmond Pitt
Is there a way to set a response header based on the content of another response header? In my specific situation I am back-ended by Tomcat and I would like to add a Pragma: no-cache header when Content-Type text/html, only, i.e. if Tomcat has already set that content-type. Or is this Pragma obso

[users@httpd] PHP-FPM with Apache 2.4, forward all request for all virtual host

2013-04-03 Thread Jose Nobile
Hi, In Apache 2.2 forward all request that point to phisical .php file to PHP-FPM is as follow: LoadModule fastcgi_module modules/mod_fastcgi.so FastCGIExternalServer /usr/sbin/php-fpm -socket /usr/local/php/lib/

Re: [users@httpd] file extensions for CGI

2013-04-03 Thread Tom Evans
On Wed, Apr 3, 2013 at 1:03 PM, Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC] wrote: > The execute bit is set. http://httpd.apache.org/docs/2.2/howto/cgi.html#nonscriptalias Because those options are not set, Apache refuses to execute the file. Remove the execute bit if it i

RE: [users@httpd] file extensions for CGI

2013-04-03 Thread Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]
The execute bit is set. Stuart J. Newman Engineer 4; Systems Solar Dynamics Observatory (SDO)   Honeywell Technology Solutions Inc NASA/Goddard Space Flight Center Building 14, Room E222 Mail Stop 428.2 G

Re: [users@httpd] file extensions for CGI

2013-04-03 Thread Tom Evans
Is the file executable - ie "does it have it's exec bit set", not "is it a program". Cheers Tom On Wed, Apr 3, 2013 at 12:03 PM, Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC] wrote: > I am using RedHat 6.4 with Apache 2.2.15. I send a wget request to the > server for /cobb

[users@httpd] file extensions for CGI

2013-04-03 Thread Newman, Stuart J. (GSFC-444.0)[HONEYWELL TECHNOLOGY SOLUTIONS INC]
I am using RedHat 6.4 with Apache 2.2.15. I send a wget request to the server for /cobbler/pub/foo.to. The server returns a 403 status. The access_log entry is: 129.165.8.75 - - [02/Apr/2013:11:46:44 +] "GET /cobbler/pub/foo.to HTTP/1.0" 403 220 "-" "Wget/1.10.2 (Red Hat modified)" The e

Re: [users@httpd] Problem with wildcard subdomains and ProxyPass

2013-04-03 Thread Tom Evans
On Tue, Apr 2, 2013 at 9:18 PM, Thibaut Lemaire wrote: > > Le 02/04/2013 18:45, Tom Evans a écrit : > >> Do you mean proxy - you want to connect to a different server, fetch >> that content over the network to this server, and then deliver it to >> the client? > > > Yes, it's what I want to do. Is