0

Our hosted development server has a problem with Apache2; 414 Request URI too long.

I have had the host change LimitRequestLine 65536 in apache2.conf, and restart apache...still no change. This is a debian server.

The length of the URI causing the issue is 442 characters - and yes, it needs to be, as it is a return from a bank to wordpress/woocommerce, and the only way to make this particular bank API work. (POST not an option)

Any ideas?

11
  • Hmm, hosted you say? If you have name based virtual hosts, the server-wide limit is set by the first-listed host. So perhaps the LimitRequestLine being updated is having no effect, b/c your host isn't the first listed.
    – bishop
    Jan 29, 2014 at 23:38
  • @bishop how to determine "name based virtual hosts"? Is that when they have the domains listed in /apache2/sites-available? Well they aren't - but I haven't delved into exactly how they have it configured.
    – Onyx
    Jan 29, 2014 at 23:42
  • It's when they have one IP serving many web sites with different domains and content. Eg, fastfood.com and nurseryrhymes.com both served by same Apache service on IP 1.2.3.4. You can use a reverse IP lookup to determine if you're sharing an IP.
    – bishop
    Jan 29, 2014 at 23:44
  • Ok, so it is a name based virtual host. 91 other domains on that server.
    – Onyx
    Jan 30, 2014 at 0:17
  • Sometimes, serves have a WAF in front and that piece of hardware is capable of enforce rules such as a maximun number of params/length in URL requests.
    – Alfabravo
    Jan 30, 2014 at 0:18

1 Answer 1

0

Fixed it. It turned out it was a Wordpress "feature" that I knew nothing about in Security-> Tweaks -> Prevent Long URL Strings

Wasted a day on that. Thanks Wordpress.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.