How do I set rewrite rules for my OLS Virtual Host?

Hi, I want to use OLS for reverse proxying but when I try to add Rewrite Rules to my virtual host, OLS tells me that CP is managing the rewrite rules. The problem is that I’m not sure where to find Virtual Servers on CP, so I’m unable to use rewrite rules.

What should I do to edit virtual host rules? Thanks.

Welcome @tetraizor Happy you are here

If it is a virtual host See this Location of configuration files - Docs - CyberPanel Community

You can also edit in CyberPanel hosting panel as seen screenshot below. CLick vHost COnf

The correct way to rewrite rules if using OLS + CyberPanel is:

Go to https://SERVER_URL:8090/websites/example.com

Click on Rewrite Rules

My problem was when I create Virtual Hosts from OLS, I could not see them from CP. So I guess because I have CP installed I have to create Virtual Hosts from CyberPanel’s create website option right? Because then I can see them on OLS, but can’t do it the other way.

Thank you for the answers, it really helped.

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.