I think it should be some common thing, but as I am a novice I am
stuck. Requesting for help on how to proceed. Any suggestion or
pointer would be of vital help.

thanks
Sanjay

On Jul 24, 6:16 pm, Sanjay <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I have an identity enabled application. I am a novice in deployment
> and unable to find out how to configure the application such that only
> the login happens with https, and the rest of the application works
> with http. I am using nginX and the minimal .conf file I have is
> pasted below.
>
> thanks
> Sanjay
>
> worker_processes  1;
>
> events {
>     worker_connections  1024;
>
> }
>
> http {
>     include       conf/mime.types;
>     default_type  application/octet-stream;
>
>     sendfile        on;
>
>     keepalive_timeout  65;
>
>     upstream mycluster {
>         server 127.0.0.1:8080;
>     }
>
>     server {
>         listen 80;
>
>         # proxy to turbogears app
>         location / {
>             proxy_pass              http://mycluster;
>             proxy_redirect          off;
>             proxy_set_header        Host $host;
>             proxy_set_header        X-Real-IP $remote_addr;
>             proxy_set_header        X-Forwarded-For
> $proxy_add_x_forwarded_for;
>         }
>     }
>
>     # HTTPS server
>     server {
>         listen       443;
>         server_name  localhost;
>
>         ssl                  on;
>         ssl_certificate      server.crt;
>         ssl_certificate_key  server.key;
>
>         ssl_session_timeout  5m;
>
>         ssl_protocols  SSLv2 SSLv3 TLSv1;
>         ssl_ciphers  ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:
> +SSLv2:+EXP;
>         ssl_prefer_server_ciphers   on;
>
>         # proxy to turbogears app
>         location / {
>             proxy_pass              http://mycluster;
>             proxy_redirect          off;
>             proxy_set_header        Host $host;
>             proxy_set_header        X-Real-IP $remote_addr;
>             proxy_set_header        X-Forwarded-For
> $proxy_add_x_forwarded_for;
>         }
>      }
>
> }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to