webserver.tex: use faster redirect for nginx
authormrothe <markus@unixforces.net>
Wed, 1 Jan 2014 14:39:24 +0000 (15:39 +0100)
committermrothe <markus@unixforces.net>
Wed, 1 Jan 2014 14:39:24 +0000 (15:39 +0100)
Doing a redirect by return is faster than what was previously used.
Also replace in the text the capital S by a bold one in "https://"

src/practical_settings/webserver.tex

index 6c3fe6c..78d6ca3 100644 (file)
@@ -183,10 +183,10 @@ If you decide to trust NIST's ECC curve recommendation, you can add the followin
   ssl_ecdh_curve          secp384r1;
 \end{lstlisting}
 
-You might want to redirect everything to httpS:// if possible. In Nginx you can do this with the following setting:
+You might want to redirect everything to http\textbf{s}:// if possible. In Nginx you can do this with the following setting:
 
 \begin{lstlisting}[breaklines]
-  rewrite     ^(.*)   https://$host$1 permanent;
+  return 301 https://$host$request_uri;
 \end{lstlisting}