Tuesday, 13 August 2013

CSS are loaded over https, but images are not

CSS are loaded over https, but images are not

I'm serving a django project with static files served by seperate apache
server. I've installed SSL certificates both servers and I've configured
apache by manually. For a while, project must work on both http and https
ports. When it's certain, every thing works flawless over https, I'm going
to shut down http connection, or redirect http to https. I have not
decided yet.
But I have one problem with CSS files which includes absolute http paths
for images in it. Images are not loading while project running over https
port. I know the problem is that absolute image URLs. But I can't change
whole paths in CSS files right now. How can I make work those http paths
in CSS files while project running on both port?
If I will redirect whole static file requests from http to https by
apache, I guess https request work but does http requests work too?

No comments:

Post a Comment