New answers tagged

0 votes

nginx config fails with SSL key/pem (unique case)

I got this error because I accidentally used the .cer file instead of the .key file in the ssl_certificate_key directive.
gitaarik's user avatar
  • 471
0 votes

Apache redirect http://%{HTTP_HOST}:%{SERVER_PORT}/%{REQUEST_URI} to https://%{HTTP_HOST}%{REQUEST_URI}

No need to check the port or if it is SSL, if a requests that is SSL lands here you will get an error since virtualhost won't be able to answer, and virtualhost is already specifying it is port 5555 ...
Daniel Ferradal's user avatar
1 vote

Apache redirect http://%{HTTP_HOST}:%{SERVER_PORT}/%{REQUEST_URI} to https://%{HTTP_HOST}%{REQUEST_URI}

If the Redirect directive is used within a <Location> or <LocationMatch> section with the URL-path omitted, then the URL parameter will be interpreted using expression syntax. This syntax ...
Esa Jokinen's user avatar
  • 48.2k
-2 votes

Apache redirect http://%{HTTP_HOST}:%{SERVER_PORT}/%{REQUEST_URI} to https://%{HTTP_HOST}%{REQUEST_URI}

It looks like you're trying to redirect HTTP requests on port 5555 to HTTPS without an extra slash between the %{HTTP_HOST} and %{REQUEST_URI}. You can achieve this by modifying your RewriteRule ...
Loni Venn's user avatar

Top 50 recent answers are included