unjs / redirect-ssl

Connect/Express middleware to enforce https using is-https
MIT License
100 stars 15 forks source link

redirect-ssl not working on generated content #9

Closed htsoft closed 5 years ago

htsoft commented 5 years ago

Hi,
i need to do an ssl redirect on my site to obtain from http://mysite.com to https://mysite.com
All the contents are created with Nuxt and the final version is generated via:
npm run generate command

But when I try to upload the site to my server (with a simple Apache installation and a valid certificate) if I use http protocol it does not redirect to https protocol.

Could you please show me the exact passes to implement your plugin in this cases?

Kindly, Roberto

This question is available on Nuxt community (#c3)
ghost commented 5 years ago

This issue as been imported as question since it does not respect redirect-ssl issue template. Only bug reports and feature requests stays open to reduce maintainers workload. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/redirect-ssl/issues/c3.

mickaelchanrion commented 4 years ago

This won't work because you don't have a nuxt server running on generated projects