vlang / website

MIT License
62 stars 96 forks source link

website 404 error #187

Closed hanrea closed 3 years ago

hanrea commented 3 years ago

http://vpm.vlang.io/ show nginx 404 error,please check it !

Gladear commented 3 years ago

The website is https only, do you mean you really want to use in http ?

ghost commented 3 years ago

This issue has probably been fixed already. It works on my computer. Please elaborate on where the issue is?

hanrea commented 3 years ago

It. need add one config what redirect http to https . Some connections are also http On the official website.

hanrea commented 3 years ago

For nginx !

server {
    listen       80;
    server_name  vpm.vlang.io;
    rewrite ^(.*)$      https://vpm.vlang.io$1 permanent;
}
ghost commented 3 years ago

Like This?

<system.webServer>    
   <rewrite>    
      <rules>    
      <rule name="Force HTTPS" enabled="true">    
   <match url="(.*)" ignoreCase="false"/>    
   <conditions>    
      <add input="{HTTPS}" pattern="off"/>    
   </conditions>    
   <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent"/>    
      </rule>    
      </rules>    
   </rewrite>    
</system.webServer> 
hanrea commented 3 years ago

That's right!