[geeks] web server conundrum

Patrick Giagnocavo patrick at zill.net
Wed Dec 7 01:52:55 CST 2016


It matters exactly *how* it redirects.

If it actually issues a "301" style redirect then you will have problems.  I assume it does not proxy the content.

I am not a fan of Cloudflare, but they do have a free tier - you could have a look at that.

Cheers

Patrick
----- Original Message -----
From: "Charles Shannon Hendrix" <shannon at widomaker.com>
To: "The Geeks List" <geeks at sunhelp.org>
Sent: Tuesday, December 6, 2016 8:51:01 PM GMT -07:00 US/Canada Mountain
Subject: [geeks] web server conundrum

I have an issue with my web server.

It is Apache running on a QNAP TS-453a.

I have DNS through noip.com, and since my IP address is dynamic, Ibm using
their port 80 redirection service to make it available on the standard port.

So www.website.com gets redirected to <IP ADDRESS>:<PORT NUMBER>

This works fine, but it looks ugly, so I elected to use redirection masking,
which hides the redirection from the user. It also means that CSS files are
being interpreted as text/html.

The reason, as I understand it, is because the client is going to <IP
ADDRESS>:<PORT> because of the redirection, but the code looks at
www.website.com/css/<cssfile>.

Evidently this is considered a security violation, because the hostnames of
included code (the CSS) is not the same as the website (the IP ADDRESS). The
web server handles this by changing the MIME type to a non-code type, which
breaks the css.

This seems like a really silly situation. Web redirection for web servers
sitting on dynamic IP addresses is fairly common, so there must be a
solution.
_______________________________________________
GEEKS:  http://www.sunhelp.org/mailman/listinfo/geeks


More information about the geeks mailing list