Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm building a personal website using Nginx and I'd like to have the option of serving the same content over both HTTP and HTTPS. However, the content management system I'm using stores a lot of the URIs as HTTP. This results in a lot of mixed content when using HTTPS, and eventually results in entire pages being served over HTTP.

I'm considering using persistent Perl script to act as a proxy and rewrite HTML as it is served. The alternative seems to be finding or writing plugins for each Web software package I install.

Is there a better way to go about this?

share|improve this question

1 Answer 1

If you can't configure your CMS to only generate relative links, try the HTTPSubModule. This module can search and replace text in the nginx response.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.