nginx + apache https

Fix for nginx + apache