Welcome! Log In Create A New Profile

Advanced

Re: Please help me

October 05, 2011 09:38AM
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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Please help me

Giang September 08, 2011 10:20AM

Re: Please help me

magicbear September 08, 2011 01:36PM

Re: Please help me

Giang October 05, 2011 08:52AM

Re: Please help me

Igor Sysoev October 05, 2011 09:38AM

Re: Please help me

Giang October 11, 2011 08:20AM

Re: Please help me

Igor Sysoev October 05, 2011 09:38AM

Re: Please help me

Igor Sysoev October 05, 2011 09:38AM

Re: Please help me

Samael October 05, 2011 09:41AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 266
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready