<div dir="ltr">how about adding<div><span style="font-size:12.8px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">server {</span><br style="font-size:12.8px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial"><span style="font-size:12.8px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> listen 80;<br></span> redirect https://$host$request_uri 301; //YYMV as to what destination you need them to end up at. </div><div>}</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 7, 2018 at 3:58 PM, fugee ohu <span dir="ltr"><<a href="mailto:fugee279@gmail.com" target="_blank">fugee279@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What do you mean by "also have a port 80 config" ? The port 80 configs<br>
are my other sites that I haven't created certificates for yet The<br>
port 80 config for the site in question is commented out in favor of<br>
`listen 443 ssl;`<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Aug 7, 2018 at 3:45 PM, basti <<a href="mailto:mailinglist@unix-solution.de">mailinglist@unix-solution.de</a>> wrote:<br>
> first of all use wget or curl for testing to bypass browser cache.<br>
> when you have also a port 80 config and call <a href="http://example.com" rel="noreferrer" target="_blank">http://example.com</a> you<br>
> *must* have a redirect to https. when you call <a href="https://example.com" rel="noreferrer" target="_blank">https://example.com</a> it<br>
> should work, i think (not tested)<br>
><br>
> On 07.08.2018 21:39, fugee ohu wrote:<br>
>> server {<br>
>> listen 443 ssl;<br>
>> ssl_certificate /etc/ssl/certs/sitename/<wbr>certificate.crt;<br>
>> ssl_certificate_key /etc/ssl/certs/sitename/<wbr>private.key;<br>
>> server_name *.<a href="http://sitename.com" rel="noreferrer" target="_blank">sitename.com</a> <a href="http://www.sitename.com" rel="noreferrer" target="_blank">www.sitename.com</a> sitename;<br>
>> charset utf-8;<br>
>> location / {<br>
>> root /usr/home/fugee/websites/<wbr>sitename/public;<br>
>> rails_env production;<br>
>> passenger_enabled on;<br>
>> }<br>
>> }<br>
>><br>
>> On Tue, Aug 7, 2018 at 3:28 PM, basti <<a href="mailto:mailinglist@unix-solution.de">mailinglist@unix-solution.de</a>> wrote:<br>
>>> please show us your config<br>
>>><br>
>>> On 07.08.2018 21:22, fugee ohu wrote:<br>
>>>> I'm trying to enable site wide ssl over port 443 on a site that runs<br>
>>>> on http port 80<br>
>>>> In nginx.conf i have `listen 443 ssl;` for the server but requests for<br>
>>>> the server get routed to the first available host on port 80, another<br>
>>>> of my sites also in the nginx.conf How can I diagnose this to see<br>
>>>> what's going on?<br>
>>>> ______________________________<wbr>_________________<br>
>>>> nginx mailing list<br>
>>>> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
>>>> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
>>>><br>
>>> ______________________________<wbr>_________________<br>
>>> nginx mailing list<br>
>>> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
>>> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
>> ______________________________<wbr>_________________<br>
>> nginx mailing list<br>
>> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
>> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
>><br>
> ______________________________<wbr>_________________<br>
> nginx mailing list<br>
> <a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
> <a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br></div>