Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Just to be clear, are you wanting to server blog from domain.com/blog or blog.domain.com?
If you’re wanting to serve it from a sub-domain, it’d be better to simply create a server block that will handle it exclusively. For example:
server {
listen 80;
server_name blog.domain.com www.blog.domain.com;
root /path/to/blog;
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /path/to/fastcgi_params.conf;
}
}
You would need to modify the above and set /path/to/fastcgi_params.conf to it’s location on your server.
Once set, the above should handle blog.domain.com and www.blog.domain.com as long as your DNS is setup for it.
This is one way of handling it and the route I’d take. I prefer to use individual server blocks when and where possible over handling numerous items in a single block.
Hi! Thanks for helping.
So I’m reverse proxy-ing blog.domain.com to domain.com/blog/.
The blog.domain.com is not hosted on the same server.
Thanks :)