Adam
Adam

Reputation: 341

SSL on application in nginx

I am running an nginx web server where I redirect all http requests to https (with a self signed cert).

Problem is - I cannot seem to do so for an app running on a port. Example:

http://my.server.ip:1234

How can I modify the nginx config file to force that url through ssl?

Upvotes: 0

Views: 46

Answers (1)

itpp13
itpp13

Reputation: 454

try this: return 301 https://my.server.ip:1234$request_uri;

Upvotes: 1

Related Questions