mirror of
https://github.com/actix/examples
synced 2024-11-27 16:02:57 +01:00
fix redirecthttps link
This commit is contained in:
parent
c47371caa7
commit
c0e99e7233
@ -1,5 +1,11 @@
|
|||||||
## Middleware: Redirect Any HTTP Connection To Use HTTPS Connection
|
## Middleware: Redirect Any HTTP Connection To Use HTTPS Connection
|
||||||
|
|
||||||
|
## Alternatives
|
||||||
|
|
||||||
|
A pre-built solution is soon to be built-in. For now, see [`RedirectHttp`](https://docs.rs/actix-web-lab/0.16/actix_web_lab/middleware/struct.RedirectHttps.html) from [`actix-web-lab`](https://crates.io/crates/actix-web-lab).
|
||||||
|
|
||||||
|
## This Example
|
||||||
|
|
||||||
This example is the next step after implementing this example : [Setup TLS via rustls](https://github.com/actix/examples/tree/master/security/rustls).
|
This example is the next step after implementing this example : [Setup TLS via rustls](https://github.com/actix/examples/tree/master/security/rustls).
|
||||||
|
|
||||||
You might have already implemented TLS (using one of the ways mentioned in the example of security section), and have setup your server to listen to port 443 (for HTTPS).
|
You might have already implemented TLS (using one of the ways mentioned in the example of security section), and have setup your server to listen to port 443 (for HTTPS).
|
||||||
@ -12,7 +18,3 @@ Now, the only problem left to solve is, to listen to **HTTP** connections as wel
|
|||||||
cd middleware/middleware-http-to-https
|
cd middleware/middleware-http-to-https
|
||||||
cargo run
|
cargo run
|
||||||
```
|
```
|
||||||
|
|
||||||
## Notes
|
|
||||||
|
|
||||||
Also see [`redirect_to_https`](https://docs.rs/actix-web-lab/0/actix_web_lab/middleware/fn.redirect_to_https.html) from [`actix-web-lab`](https://crates.io/crates/actix-web-lab).
|
|
||||||
|
Loading…
Reference in New Issue
Block a user