How to serve some file types from Apache instead from nginx

Post Reply
User avatar
isscbta
Team Member
Posts: 130
Joined: Mon Jul 19, 2021 1:41 am
Has thanked: 15 times
Been thanked: 3 times

Due to the fact that myVesta is hosted on Apache, and nginx is used as a reverse proxy, this tweak might be helpful in some cases.

Reverse proxy servers sit in front of web servers and receive all requests before sending them to the origin server. It works much like a forward proxy, but here rather than a user or client, it's the web server that uses it. Typically, reverse proxies are used to improve the performance, security, and reliability of web servers.

So now when we went through this intro to get a deeper understanding of what's happening under the hood we can proceed further.

Let's suppose that you want Apache to handle all XML files instead of nginx doing it on your site at domain.com, to achieve this go to your myVesta hosting panel and select Edit for this particular domain:

ss1.png
ss1.png (39.08 KiB)

Under Proxy Support / Proxy Extensions you would delete XML from the list:

ss2.png
ss2.png (20.15 KiB)

After that, all you have to do is to Save those changes, and you are done

ss3.png
ss3.png (3.1 KiB)

Now all XML files will be served from Apache instead from nginx

Tags:
Post Reply