I have the following problem, and I'm hoping someone here might have a fix, because cPanel support has stonewalled me.
On one server a few weeks ago, we had a simple proxy setup so that https://cpanel.ourhosting.com would proxy to our cPanel port. This was for people inside of a firewall, etc, to gain access. It's a popular feature for alot of users. Then suddenly it stopped working. Cpanel ouputted raw text to the browser. The cause of this is that cPanel was outputting the mimetype as "text/plain" instead of "text/html", but only to the proxy. We recompiled apache, tried other proxies, and proxied from a known good server. Nada.
Then disaster struck. We upcp'd the servers to fix a problem with cPanel not pulling zlib during the nightly upcp. Now every server (18+) are outputting this. We have a ton of tickets from very angry users. Cpanel claims it's not supported....
....As an engineer for 10+ years, I know that their is no reason that cPanel should change the mime type based on the client, and due to it's propagation after a upcp, this is an error caused by something in the cpanel server. It does not do this for our WHM or web proxies. Only cPanel. Unfortunately, I cannot find a workaround for this, or a way to rewrite the mimetype of the file when it is output. I need a solution desperately. I have filed tickets, but have been stonewalled as "Not our problem". Because of this error, I believe that any ISP that uses a web proxy may experience this error when accessing a cPanel page, in addition to it affecting our workaround.
Thanks.
On one server a few weeks ago, we had a simple proxy setup so that https://cpanel.ourhosting.com would proxy to our cPanel port. This was for people inside of a firewall, etc, to gain access. It's a popular feature for alot of users. Then suddenly it stopped working. Cpanel ouputted raw text to the browser. The cause of this is that cPanel was outputting the mimetype as "text/plain" instead of "text/html", but only to the proxy. We recompiled apache, tried other proxies, and proxied from a known good server. Nada.
Then disaster struck. We upcp'd the servers to fix a problem with cPanel not pulling zlib during the nightly upcp. Now every server (18+) are outputting this. We have a ton of tickets from very angry users. Cpanel claims it's not supported....
....As an engineer for 10+ years, I know that their is no reason that cPanel should change the mime type based on the client, and due to it's propagation after a upcp, this is an error caused by something in the cpanel server. It does not do this for our WHM or web proxies. Only cPanel. Unfortunately, I cannot find a workaround for this, or a way to rewrite the mimetype of the file when it is output. I need a solution desperately. I have filed tickets, but have been stonewalled as "Not our problem". Because of this error, I believe that any ISP that uses a web proxy may experience this error when accessing a cPanel page, in addition to it affecting our workaround.
Thanks.