Leonardo0801 NGinx is different, try this:
server {
listen 80;
server_name forum.virtualmine.it;
return 301 https://forum.virtualmine.it$request_uri;
}
Alternatively, to redirect all http traffic, and not just your forum site:
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}