SyntaxFix
Write A Post
Hire A Developer
Questions
If you really need to do this, use reverse proxy.
For example, with nginx as reverse proxy
server { listen api.mydomain.com:80; server_name api.mydomain.com; location / { proxy_pass http://127.0.0.1:8000; } }