<div dir="ltr"><div style>Try:</div><div style><br></div><div style>server {</div><div style> server_name forum; </div><div style><br></div><div style> ...</div><div style><br></div> location ^~ /acp/ {<div style>
return 301 <a href="https://forum">https://forum</a>$request_uri;</div><div> }<div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">server {</div>
<div class="gmail_extra"> server_name forum; <br></div><div class="gmail_extra" style> listen 443 ssl;</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style> ....</div><div class="gmail_extra" style>
<br></div><div class="gmail_extra" style> location / {</div><div class="gmail_extra" style> return 301 <a href="http://forum">http://forum</a>$request_uri;</div><div class="gmail_extra" style> }</div><div class="gmail_extra">
<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"> location ^~ /acp/ {</div><div class="gmail_extra"> ...</div><div class="gmail_extra"> }</div><div class="gmail_extra">}</div><div><br>
</div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div>----appa<br><br></div>
<br><br><div class="gmail_quote">On Tue, Jun 4, 2013 at 1:53 AM, Patrik Kernstock <span dir="ltr"><<a href="mailto:info@pkern.at" target="_blank">info@pkern.at</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello,<br>
<br>
I'm trying since about half an hour to get SSL-only on the administration<br>
panel of Woltlab burning board working, but without success. The rule will<br>
just be ignored.<br>
<br>
What I currently have:<br>
location /acp/(.*)$ {<br>
if ($server_port = 80) {<br>
rewrite ^/(.*)$ <a href="https://forum/acp/$1" target="_blank">https://forum/acp/$1</a> redirect;<br>
}<br>
}<br>
<br>
Thanks for any help! :)<br>
<br>
Kind regards,<br>
Patrik Kernstock<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div><br></div></div></div>