Replies: 1 comment 2 replies
-
I think a good approach is to use a reverse proxy like Nginx on top of Swoole servers. Then you can easily configure domains and TLS termination. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering lately how would perform typical website built on Swoole. Right now I'm mostly using it as a API server or for some background stuff, but still not related directly to the website and domains.
So what would be the best approach to build website if you consider having to attach domain somehow. In Apache you just create vhost for that purpose. Is there way to do something similar? I mean, I guess it is possible to use some WWW server for handling domains and redirect traffic to backend. Like it's done with Apache and php-fpm for example. But wouldn't that hurt performance? And what about more than one domain?
Beta Was this translation helpful? Give feedback.
All reactions