Skip to content

Add seo target domain as fcgi server_name

Qroac requested to merge qroac/ispconfig3:fastcgi_server_name into master

One of my customers runs a kirby CMS page on nginx with seo redirect to www.domain.com

If a page like this relies on the given SERVER_NAME variable in PHP, it always uses domain.com, because it is listed first in the vHosts server_name setting.
For pages with SEO redirects and CSRF in forms that redirect after form submits can be a problem.

So this minor change passes the desired SEO domain of the website to FCGI, if seo redirect is active.
This way scripts can rely on SERVER_NAME without causing unwanted jumps and redirects.

Merge request reports