Re: [users@httpd] Bizarre problem with Apache HTTPD, a number of Tomcats, mod_proxy_balancer and mod_jk - any ideas where to look for the root cause welcome [EXT]

2020-03-18 Thread Dr James Smith
Do you see anything different between the users that work and the users that don't.. Do they use a different browser (useragent) or HTTP protocol? On 18/03/2020 12:40, "Jürgen Göres" wrote: Hi all, we are currently observing a really bizarre problem on a customer system. Our software runs a nu

Re: [users@httpd] Complete list of Expires Headers for WordPress site? [EXT]

2020-02-18 Thread Dr James Smith
Do you embed external resources (like fonts in) these don't tend to have the same headers set... I get this with one of my static sites - I have 13 requests and three are for google fonts (nunito-sans) and these don't have decent headers set! On 18/02/2020 19:00, edflecko . wrote: I mention th

Re: [users@httpd] two servers and sites on single IP

2018-06-29 Thread Dr James Smith
mod_proxy is the standard approach here.. Set up a second vhost on 192.168.0.1 and get that to proxy back to 192.168.0.2 You will need to specify a small folder as doc root - basically to serve error pages! - our error directory has static pages for each error message we wont to handle + css

Re: [users@httpd] Trouble updating PHP version on MAMP on Mac

2017-06-01 Thread Dr James Smith
Looks like you are using php5_module with a PHP7 so file - you should be using: LoadModule php7_module /libphp7.0.so On 01/06/2017 20:26, Roparzh Hemon wrote: I am not on Apple here, and you don't say whether you are using php-fpm or not, but assuming that you are, check the start up (sys

Re: [users@httpd] I need help figuring out a 500 response code

2017-05-02 Thread Dr James Smith
Is there an error.log in the same directory? This is usually in the same directory this should contain some information about why the system failed. On 03/05/2017 07:41, John Covici wrote: Hi. I am having major problems figuring out a 500 response code I am getting on my hserver. I am using

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] Copyright notices in httpd source files

2016-12-28 Thread Dr James Smith
At work all out software is open source - but we have to include a copyright notice in all source files where possible - as we then distribute the content under LGPL. The logic is that if we didn't claim copyright on the contents of the source - someone else might claim it and make it closed so

Re: [users@httpd] resources prioritization/scheduler (app vs assets)

2016-12-10 Thread Dr James Smith
Before you get into trying to resolve issues with load there are a few things to consider: Your "model" of traffic is probably wrong... * Have you seen this traffic shape.. if a user requests a page - it will probably be a few milliseconds before the browser requests the first static fil

Re: [users@httpd] Mod_Substitute - Match the last occurrence of a string in the response

2016-11-23 Thread Dr James Smith
Why are you attaching after the last meta tag - wouldn't it be easier just before the tag or just after the tag - you should have no other js in the header - except possibly an HTML 5 shim... On 23/11/2016 08:08, Mayuresh wrote: Any suggestions? On Nov 22, 2016 11:32 AM, "Mayuresh"

Re: [users@httpd] Mod_Substitute - Match the last occurrence of a string in the response

2016-11-22 Thread Dr James Smith
Never used mod_substitute - but the standard PCRE way is s/(.*)>/$1/mxs - the .* will capture greedily - so captures all but last meta... On 22/11/2016 16:50, Mayuresh wrote: Hi, How can I check for the last occurrence of a string in the response html and only replace the last occurrenc

Re: [users@httpd] Random Internal Server Error 500 after apache and system update

2016-10-02 Thread Dr James Smith
Things you can do are trying to track down if there is any pattern - are these first request on a child, "nth" request on child etc... we add additional variables to access logs which include things such as PID/request no in PID, memory usage before and after etc. This allows us sometimes to s

Re: [users@httpd] Apache losing its connection from Tomcat in few minutes

2016-09-04 Thread Dr James Smith
You don't give enough information about the setup to solve any of your problems really. Are the apache/tomcat/cms on the same box or different We have seen big problems with mod_jk when there are firewalls involved (so much so we don't use it any more but use mod_proxy instead) - connections

Re: [users@httpd] How to restart apache after reboot on ubuntu 16.04?

2016-08-17 Thread Dr James Smith
tup. On Wed, Aug 17, 2016 at 2:50 PM, Dr James Smith <mailto:j...@sanger.ac.uk>> wrote: Depends on your backends - nginx is good if it is serving primarily static files and or proxying back to quick responding backends. It seems to be less well suited to slower/heavier

Re: [users@httpd] How to restart apache after reboot on ubuntu 16.04?

2016-08-17 Thread Dr James Smith
Depends on your backends - nginx is good if it is serving primarily static files and or proxying back to quick responding backends. It seems to be less well suited to slower/heavier backends. Apache always seems to work - slower mind you - but always seems to work... So if reliability is your r

Re: [users@httpd] Run PHP Handler after running my handler Apache

2016-07-18 Thread Dr James Smith
I use something similar - you should really be applying this in one of the AAA level of handlers (I use mod_perl rather than C handlers) but there are various places you can hook into the process Usually (and slightly naughtily) I add this to the access handler within mod_perl {it does the use

Re: [users@httpd] Help disabling weak ciphers.

2016-07-15 Thread Dr James Smith
I use: SSLProtocol all -SSLv2 -SSLv3 SSLHonorCipherOrder on SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS as the setting for ciphers - this gets a A+ rating on the qualys SSL labs scoring (alt

Re: [users@httpd] Re: Strange access.log entry...

2016-07-09 Thread Dr James Smith
Is the response the same as the response for / - thats' all I can assume...? On 09/07/2016 14:00, Jonesy wrote: On Fri, 8 Jul 2016 15:51:27 -0700, Red-Tail Books wrote: --D86F2E214EC5EE5DBED2B3B9 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit

Re: [users@httpd] Issues migrating Weblogic proxies from Sun One 6.1 to Apache 2.4

2016-06-18 Thread Dr James Smith
How are you connecting between the web-proxies and web-logic application servers? Having a firewall in place can be an issue - the firewall may drop idle connections silently (we see this with oracle, mod_jk/ajp/memcache and in some instances cached mysql connections; unfortunately neither end

Re: [users@httpd] Make Apache react more graceful to SSL errors

2016-05-01 Thread Dr James Smith
Agree with Michael, My start/stop scripts all now do a configtest before trying to stop/start apache - this way I never have no service if something goes wrong! I do have a forcestop which will stop an apache if the config is wrong - as a last resort! James On 01/05/2016 14:27, Michael A.

Re: [users@httpd] What is wrong with my virtual host setting

2016-04-10 Thread Dr James Smith
On 10/04/2016 15:31, Roland Szűcs wrote: Hi folks, I use Apache 2.4 and I installed a Glassfish application server behind it. I use mod_jk modul as the dynamic content has to be handled by Glassfish and my static content (wordpress blog) is handled by Abapche. My test domain is: muveltnep.

Re: [users@httpd] Address already in use in Apache on Mac

2016-03-19 Thread Dr James Smith
Apache will have already started... try -k restart or -k stop followed by -k start On 19/03/2016 07:21, Roparzh Hemon wrote: Hello all, I get the following error message when I try to launch the Apache server : $ sudo ./bin/apachectl -k start Password: (48)Address already in use: AH00072: make

Re: [users@httpd] Howto accept only one connection

2016-02-19 Thread Dr James Smith
Can you not just go into debug mode -X? On 19/02/2016 12:52, Aurélien Terrestris wrote: Richard, is this a config that you tried successfully ? On my server, "prefork MPM" will put requests in the backlog (waiting), and "event MPM" is not designed for such behaviours because of its multi-thre

Re: [users@httpd] How to solve ONE fixed IP serving multiple web-servers running on VMs

2015-12-27 Thread Dr James Smith
You need to set up one webserver on the fixed IP as a proxy. (Look up docs for mod_proxy) and set up appropriate rules to proxy through to your back-end servers... On 27/12/2015 18:28, Jim Paniagua wrote: I dont even know how VM's work .. sorry no help On Fri, Dec 25, 2015 at 7:11 AM, Stephen

Re: [users@httpd] Hung thread

2015-08-17 Thread Dr James Smith
Have you looked at installing apache server status code so you can see what the last request is on each of these hung threads... Alternatively if you have something like mod_perl installed one thing that you can do is add a handler to warn the PID/request to the error logs at the start and end

Re: [users@httpd] Random latency in reentrant calls (Bug 57916)

2015-05-12 Thread Dr James Smith
You are probably hitting child spin up issues... Out of the box apache uses a process per apache child... There is an overhead/delay when a child is initially spun up, and that is what you are possibly seeing... nginx works a different way - and can cope with a moderate number of "light" requ

Re: [users@httpd] Apache24, Perl 5.010, MySQL 5.6 and Windows 8.1 - no database connection

2015-04-19 Thread Dr James Smith
Dan, The #! line has to be the first line - so it's being ignored... remove the ##! line at the start and see what happens. James On 19/04/2015 18:28, Dan Östberg wrote: Dear Jeff:-) As you can see from the enclosed files I've changed the scriptinpretersource. Are there any updates of httpd.

Re: [users@httpd] Re: 2 web servers in load balancing

2015-03-17 Thread Dr James Smith
On 17/03/2015 07:59, Alfredo De Luca wrote: Hi all. Any clue on this? On 15/03/2015 9:30 PM, "Alfredo De Luca" > wrote: Hi all. I ve never done this before so I am asking best practice/info/docs of how to have 2 apache web servers in load balancing

Re: [users@httpd] Any Comparisons? -- mod_wl vs mod_proxy vs mod_jk

2015-02-09 Thread Dr James Smith
We used mod_jk for ages and have recently flipped back to mod_proxy for our java/tomcat apps, we found that we had connectivity issues with mod_jk - if the connection between apache/tomcat is severed then mod_jk did not always work cleanly - and subsequent requests would just hang. mod_proxy

Re: [users@httpd] Apache make fedora go into corner

2014-12-27 Thread Dr James Smith
quot;post-mortem" ? - Original Message - *From:* Dr James Smith <mailto:j...@sanger.ac.uk> *To:* users@httpd.apache.org <mailto:users@httpd.apache.org> *Sent:* Saturday, December 27, 2014 3:49 PM *Subject:* Re: [users@httpd] Apache make fedora go into corner On 27/12

Re: [users@httpd] Apache make fedora go into corner

2014-12-27 Thread Dr James Smith
On 27/12/2014 13:21, georg chambert wrote: Hi, have for a bit of time had trouble with my server PC running Fedora Os and Apache. After some time it goes into non-communicatable mode, does not take any input whatsover, hard shutdown is only way to get out. It can be 24hours and it can be 14days