WBB ACP HTTPS Rewrite rule
António P. P. Almeida
appa at perusio.net
Tue Jun 4 00:02:11 UTC 2013
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
On Tue, Jun 4, 2013 at 1:53 AM, Patrik Kernstock <info at pkern.at> wrote:
> 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
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20130604/08d751b2/attachment.html>
More information about the nginx
mailing list