Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.