Redirect http-https

Im very stupid, can any body help me via ssh?

new question
how to config nginx via templates, my iredmail server configured via it

Configure Apache to act as a reverse proxy for Seafile.
ProxyPass /seafile http://mysite:8000
ProxyPassReverse /seafile http://mysite:8000
Update the Seafile server’s configuration by adding these lines to “”
FORCE_SCRIPT_NAME = ‘/seafile’
Then restart apache and the seafile server.
you can verify its redirection you can use any online tool such as tool to get detail redirection path.