0.0.4 • Published 8 years ago

http-redirect-to-https v0.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

HTTP Redirect to HTTPS

npm install -g http-redirect-to-https

http-redirect-to-https
  # Server redirecting HTTP from port 80 to HTTPS on port 443 with status code 301

Options

Configure using command line flags or environment variables

Flags --http-port --https-port --redirect-status --redirect-hostname

http-redirect-to-https --http-port 8080 --https-port 4040 --redirect-status 307 --redirect-hostname www.example.com
  # Server redirecting HTTP from port 8080 to HTTPS on port 4040 with status code 307
  # Redirecting traffic to www.example.com

Environment Variables PORT_HTTP PORT_HTTPS REDIRECT_STATUS REDIRECT_HOSTNAME

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago