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

Hi,
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 “seahub_settings.py”
FORCE_SCRIPT_NAME = ‘/seafile’
USE_X_FORWARDED_HOST = True
Then restart apache and the seafile server.
you can verify its redirection you can use any online tool such as redirectchecker.com tool to get detail redirection path.