J
J
John Freeman2018-09-14 11:43:38
Nginx
John Freeman, 2018-09-14 11:43:38

Nginx https, how to redirect to file over http only?

Hello everyone, I have a site, it works on https, I need to make it so that, for example, the archive.zip file opens on http and the site still works on https. For example: there is a file /download/archive.zipwhen I go to http://domain.com/download/archive.zipit, it redirects me to https://domain.com/download/archive.zipand I need it to behttp://domain.com/download/archive.zip

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danil Sapegin, 2018-09-14
@AsviS

in the section related to port 80 write location /download/archive.zip and you will be happy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question