Hello,
I’m trying since about half an hour to get SSL-only on the
administration
panel of Woltlab burning board working, but without success. The rule
will
just be ignored.
What I currently have:
location /acp/(.)$ {
if ($server_port = 80) {
rewrite ^/(.)$ https://forum/acp/$1 redirect;
}
}
Thanks for any help! 
Kind regards,
Patrik Kernstock
Try:
server {
server_name forum;
...
location ^~ /acp/ {
return 301 https://forum$request_uri;
}
}
server {
server_name forum;
listen 443 ssl;
....
location / {
return 301 http://forum$request_uri;
}
location ^~ /acp/ {
...
}
}
----appa
Thanks for your fast reply, Antonio!
I forgot to say, that I try to only enable SSL on ACP on not for the
rest of
the forum 
Von: [email protected] [mailto:[email protected]] Im Auftrag
von
Antnio P. P. Almeida
Gesendet: Dienstag, 04. Juni 2013 02:02
An: nginx
Betreff: Re: WBB ACP HTTPS Rewrite rule
Try:
server {
server_name forum;
…
location ^~ /acp/ {
return 301 https://forum$request_uri;
}
}
server {
server_name forum;
listen 443 ssl;
…
location / {
return 301 http://forum$request_uri;
}
location ^~ /acp/ {
…
}
}