Forum

set MaxUrlLength when using proxy

Fred
28 May 2016, 23:14
Hi Hugo,

I have a reverse proxy server that redirect content to around 10 domains using
VirtualHost {
Hostname = www.mydomain.co.uk, mydomain.co.uk, *.mydomain.co.uk
WebsiteRoot = /var/www/empty
StartFile = index.php
RequireTLS = yes,31536000
TLScertFile = /usr/local/etc/hiawatha/ssl/mydomain.co.uk.key
ExecuteCGI = no
PreventXSS = yes
PreventCSRF = yes
PreventSQLi = yes
RandomHeader = 512
ReverseProxy .* http://10.8.10.16:80 30 keep-alive
ReverseProxy .* https://10.8.10.16:443 30 keep-alive
AccessLogfile = /var/log/hiawatha/access.mydomain.co.uk.log
ErrorLogfile = /var/log/hiawatha/error.mydomain.co.uk.log
}

On the proxy server I have left the MaxUrlLength to the default value of 1000.
I now need to have MaxUrlLength = 2100 for one of the domain that I am running.
On the second server, I set MaxUrlLength = 2100 but the setting wasn't working untill i set MaxUrlLength = 2100 at the proxy level.
Is it possible to set the MaxUrlLength value for specific domain?

Thank you
Fred
Hugo Leisink
30 May 2016, 20:47
No, it's a server setting, not a virtual host setting.
Fred
30 May 2016, 22:28
Hi Hugo,

I am right to say that the setting from the proxy overide the setting fronm the backend server when it come to the MaxUrlLength setting?
Hugo Leisink
31 May 2016, 22:57
No, both reverse proxy and back server need to set it right.
This topic has been closed.