Probably you are right, the ^~ is important.<br>Thx<br> Dave<br><br><div class="gmail_quote">On Tue, Sep 25, 2012 at 5:44 PM, Paul DeBruicker [via Smalltalk] <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&node=4649097&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">

        Ahh. Ok.  Yeah your @mySeasideApp section looks fine.
<br><br><br>The way I wrote this part of the https server config:
<br><br></div><div class="im">location ^~ /signin {
<br>        try_files $uri @mySeasideApp
<br>}
<br><br></div><div class="im">tells nginx to stop checking other rules and process that one (the ^~ 
<br>part stops searching on match: 
<br><a href="http://wiki.nginx.org/HttpCoreModule#location" rel="nofollow" link="external" target="_blank">http://wiki.nginx.org/HttpCoreModule#location</a>).  So it would depend on 
<br>how you added the rewrite to your configuration for the https server. 
<br>Nginx may never get to it.
<br><br><br><br><br><br><br><br>On 09/25/2012 01:07 AM, Lasmiste wrote:
</div><div><div class="im"><br>&gt; Hi Paul,
<br>&gt;   I did a search on google and tried the first result
<br>&gt; <a href="http://superuser.com/questions/435916/nginx-rewrite-rule-to-remove-path-node" rel="nofollow" link="external" target="_blank">http://superuser.com/questions/435916/nginx-rewrite-rule-to-remove-path-node</a><br>
&gt; (it seemed to me trivial), well, it works on my http section in ngninx,
<br>&gt; but it does not work in https section, that&#39;s really weird, probably
<br>&gt; it&#39;s something I&#39;m missing.
<br>&gt; Cheers
<br>&gt;   Dave
<br>&gt;
<br>&gt;
<br></div><div class="im">&gt; On Mon, Sep 24, 2012 at 8:11 PM, Paul DeBruicker &lt;<a href="http://user/SendEmail.jtp?type=node&amp;node=4648953&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br>&gt; &lt;mailto:<a href="http://user/SendEmail.jtp?type=node&amp;node=4648953&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;&gt; wrote:
<br>&gt;
<br>&gt;     In my email clients (iOS mail app and Thunderbird) the place where
<br>&gt;     you specify your @mySeasideApp below shows nothing.
<br>&gt;
<br>&gt;
<br>&gt;     Do you think you&#39;re still having a problem with that part or is it
<br>&gt;     just url rewriting with nginx now?
<br></div>&gt;     &lt;a href=&quot;&lt;a href=&quot;https://encrypted.google.com/__search?hl=en&amp;amp;q=nginx%20remove%__20part%20of%20path%20from%__20url&quot; target=&quot;_blank&quot;&gt;https://encrypted.google.com/__search?hl=en&amp;q=nginx%20remove%__20part%20of%20path%20from%__20url</a>&quot;&gt;&lt;a href=&quot;https://encrypted.google.com/__search?hl=en&amp;amp;q=nginx%20remove%__20part%20of%20path%20from%__20url&quot; target=&quot;_blank&quot;&gt;https://encrypted.google.com/__search?hl=en&amp;q=nginx%20remove%__20part%20of%20path%20from%__20url</a><div class="im">
<div class='shrinkable-quote'><br>&gt;     &lt;<a href="https://encrypted.google.com/search?hl=en&amp;q=nginx%20remove%20part%20of%20path%20from%20url" rel="nofollow" link="external" target="_blank">https://encrypted.google.com/search?hl=en&amp;q=nginx%20remove%20part%20of%20path%20from%20url</a>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;     On 09/23/2012 11:28 AM, Dav wrote:
<br>&gt;
</div></div><div class="im">&gt;         Hi Paul,
<br>&gt;            I can&#39;t make it work, probably due to my lack of knowledge of
<br>&gt;         nginx
<br>&gt;
<br>&gt;         Let&#39;s take the signin example. I wrote @mySeasideApp like this:
<br>&gt;
<br>&gt;
<br>&gt;
<br></div><div><div class="h5">&gt;         That&#39;s because my seaside app is running on 8080, but
<div class='shrinkable-quote'><br>&gt;         unfortunately when I
<br>&gt;         click on the signin anchor, my browser reply:  &quot;/signin not found&quot;
<br>&gt;         I think that nginx should remove the /signin extrapath when it
<br>&gt;         redirects to
<br>&gt;         8080, but I don&#39;t know how.
<br>&gt;         Can you help me?
<br>&gt;         Thanks
<br>&gt;            Dave
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;         Paul DeBruicker wrote
<br>&gt;
<br>&gt;             I think you can change it with two server definitions in
<br>&gt;             nginx and never
<br>&gt;             mess with Seaside&#39;s https/http functionality at all, ever.
<br>&gt;
<br>&gt;
<br>&gt;             e.g. If the link is to <a href="http://example.com/signin" rel="nofollow" link="external" target="_blank">http://example.com/signin</a><br>&gt;             <a href="http://example.com/signup" rel="nofollow" link="external" target="_blank">http://example.com/signup</a> or <a href="http://example.com/backend" rel="nofollow" link="external" target="_blank">http://example.com/backend</a> and
<br>&gt;             the client
<br>&gt;             attempts to connect via http I rewrite &amp; redirect to https
<br>&gt;             with nginx
<br>&gt;             and pass the request to Seaside.  The SSL connections are
<br>&gt;             terminated at
<br>&gt;             Nginx.  All my links in my Seaside app are just regular
<br>&gt;             anchors/buttons
<br>&gt;             with plain callbacks.  The public site can be accessed via
<br>&gt;             http or
<br>&gt;             https.  The sign-in, sign-up and backend portions are always
<br>&gt;             SSL.
<br>&gt;
<br>&gt;             The signin form link becomes
<br>&gt;
<br>&gt;             html anchor
<br>&gt;                      useBaseUrl;
<br>&gt;                      extraPath:&#39;signin&#39;;
<br>&gt;                      callback:[self showSignin];
<br>&gt;                      with:&#39;Sign In&#39;.
<br>&gt;
<br>&gt;
<br>&gt;             Once the user authenticates it would seem to make sense to
<br>&gt;             serve them
<br>&gt;             only via SSL for the duration of their session to increase the
<br>&gt;             probability that none of their info leaks. Plus the cost in
<br>&gt;             engineering
<br>&gt;             time to forever maintain a mental model of which links
<br>&gt;             should be secure
<br>&gt;             or not seems high relative to the cost of just the cpu time
<br>&gt;             to just make
<br>&gt;             everything SSL.
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;             The Nginx server directives I use are:
<br>&gt;             server {
<br>&gt;
<br>&gt;                        listen 80;
</div></div></div>&gt;                         include  sites-available/mySiteDetails.__conf;
<br><div class="im">&gt;
<div class='shrinkable-quote'><br>&gt;                        location ^~ /backend {
<br>&gt;                                rewrite     ^/(.*)$
<br>&gt;             <a href="https://www.example.com/$1" rel="nofollow" link="external" target="_blank">https://www.example.com/$1</a> redirect;
<br>&gt;                       }
<br>&gt;
<br>&gt;                        location ^~ /signin {
<br>&gt;                                rewrite     ^/(.*)$
<br>&gt;             <a href="https://www.example.com/$1" rel="nofollow" link="external" target="_blank">https://www.example.com/$1</a> redirect;
<br>&gt;                        }
<br>&gt;                        location ^~ /signup {
<br>&gt;                                rewrite     ^/(.*)$
<br>&gt;             <a href="https://www.example.com/$1" rel="nofollow" link="external" target="_blank">https://www.example.com/$1</a> redirect;
<br>&gt;                        }
<br>&gt;             }
<br>&gt;
<br>&gt;             server {
<br>&gt;                       listen 443  ssl;
</div></div><div class="im">&gt;                       ssl_certificate /usr/local/nginx/conf/myApp.__cert;
<br>&gt;                       ssl_certificate_key /usr/local/nginx/conf/myApp.__key;
<br>&gt;                       include  sites-available/mySiteDetails.__conf;
<br></div><div class="im">&gt;                       location ^~ /backend {
<div class='shrinkable-quote'><br>&gt;                                try_files $uri @mySeasideApp;
<br>&gt;                       }
<br>&gt;                       location ^~ /signin {
<br>&gt;                                try_files $uri @mySeasideApp;
<br>&gt;                       }
<br>&gt;                      location ^~ /signup {
<br>&gt;                                 try_files $uri @mySeasideApp;
<br>&gt;                       }
<br>&gt;             }
<br>&gt;
<br>&gt;
<br>&gt;             Hope this helps
<br>&gt;
<br>&gt;             Paul
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;             On 09/23/2012 09:11 AM, Dav wrote:
<br>&gt;
<br>&gt;                 Hi Boris,
<br>&gt;                     Actually I have secured and not secured links, and
<br>&gt;                 it&#39;s a lot of work
<br>&gt;                 change it, so I prefer only to secure login. Is it
<br>&gt;                 really so difficult in
<br>&gt;                 seaside?
<br>&gt;                 Cheers
<br>&gt;                     Dave
<br>&gt;
<br>&gt;
<br>&gt;                 Boris Popov, DeepCove Labs (SNN) wrote
<br>&gt;
<br>&gt;                     Any specific reason you don&#39;t just want your whole
<br>&gt;                     application to be
<br>&gt;                     SSL-secured?
<br>&gt;
<br>&gt;                     -Boris
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;                 --
<br>&gt;                 View this message in context:
</div></div>&gt;                 <a href="http://forum.world.st/Login-__form-via-ssl-https-__tp4648556p4648566.html" rel="nofollow" link="external" target="_blank">http://forum.world.st/Login-__form-via-ssl-https-__tp4648556p4648566.html</a><div class="im">
<br>&gt;                 &lt;<a href="http://forum.world.st/Login-form-via-ssl-https-tp4648556p4648566.html" rel="nofollow" link="external" target="_blank">http://forum.world.st/Login-form-via-ssl-https-tp4648556p4648566.html</a>&gt;
<br>&gt;                 Sent from the Seaside General mailing list archive at
<br>&gt;                 Nabble.com.
<br></div><div class="im">&gt;                 _________________________________________________
<br>&gt;                 seaside mailing list
<br>&gt;
<br>&gt;
<br>&gt;             seaside@.squeakfoundation
<br>&gt;
<br>&gt;
<br>&gt;                 <a href="http://lists.squeakfoundation.__org/cgi-bin/mailman/listinfo/__seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.__org/cgi-bin/mailman/listinfo/__seaside</a><br>
&gt;                 &lt;<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>&gt;
<div class='shrinkable-quote'><br>&gt;
<br>&gt;
<br>&gt;             _________________________________________________
<br>&gt;             seaside mailing list
<br>&gt;
<br>&gt;
<br>&gt;             seaside@.squeakfoundation
<br>&gt;
<br>&gt;
<br>&gt;             <a href="http://lists.squeakfoundation.__org/cgi-bin/mailman/listinfo/__seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.__org/cgi-bin/mailman/listinfo/__seaside</a></div>
&gt;             &lt;<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
<br></div><div class="im">&gt;         --
<br>&gt;         View this message in context:
<br></div>&gt;         <a href="http://forum.world.st/Login-__form-via-ssl-https-__tp4648556p4648581.html" rel="nofollow" link="external" target="_blank">http://forum.world.st/Login-__form-via-ssl-https-__tp4648556p4648581.html</a><br>
&gt;         &lt;<a href="http://forum.world.st/Login-form-via-ssl-https-tp4648556p4648581.html" rel="nofollow" link="external" target="_blank">http://forum.world.st/Login-form-via-ssl-https-tp4648556p4648581.html</a>&gt;
<br><div class="im">&gt;
<br>&gt;         Sent from the Seaside General mailing list archive at Nabble.com.
<br></div>&gt;         _________________________________________________
<br><div class="im">&gt;         seaside mailing list
<br>&gt;         <a href="http://user/SendEmail.jtp?type=node&amp;node=4648953&amp;i=2" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br></div>&gt;         &lt;mailto:<a href="http://user/SendEmail.jtp?type=node&amp;node=4648953&amp;i=3" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt;
<br>&gt;         <a href="http://lists.squeakfoundation.__org/cgi-bin/mailman/listinfo/__seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.__org/cgi-bin/mailman/listinfo/__seaside</a><br>
&gt;         &lt;<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>&gt;
<br>&gt;
<br>&gt;
<br>&gt;
</div><div class="im"><br>_______________________________________________
<br>seaside mailing list
<br><a href="http://user/SendEmail.jtp?type=node&amp;node=4648953&amp;i=4" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>

        
        
        
        <br>
        <br>
        <hr color="#cccccc" noshade size="1">
        </div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="im">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://forum.world.st/Login-form-via-ssl-https-tp4648556p4648953.html" target="_blank" rel="nofollow" link="external">http://forum.world.st/Login-form-via-ssl-https-tp4648556p4648953.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from Login form via ssl (https), <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/Login-form-via-ssl-https-tp4648556p4649097.html">Re: Login form via ssl (https)</a><br/>
Sent from the <a href="http://forum.world.st/Seaside-General-f86180.html">Seaside General mailing list archive</a> at Nabble.com.<br/>