Please help me
Igor Sysoev
igor at sysoev.ru
Wed Oct 5 13:36:37 UTC 2011
On Thu, Sep 08, 2011 at 10:20:44AM -0400, Giang wrote:
> Hi guys,
>
> I'm new to nginx. Just knew how to use it few months ago.
>
> I got a QuickSSL SSL, but I would like to install it only on mybb admin
> folder only (http://myforum.com/admin will rewrite to
> https://myforum.com/admin) and keep the rest of the site uses http.
>
> Only http://myforum.com/admin will redirect to
> https://myforum.com/admin. It didn't work with any existing file inside
> admin (for example: admin/index.php).
>
> Here is my current nginx config:
>
> server {
> listen 80;
> server_name domain.com www.domain.com;
> root /var/www/domain.com;
> include /etc/nginx/fastcgi_php;
> index index.php index.html;
> location / {
>
> }
> }
> location /admin {
- location /admin {
+ location ^~ /admin {
> rewrite ^/ https://$http_host$request_uri permanent;
> }
> }
--
Igor Sysoev
More information about the nginx
mailing list