OpenLiteSpeed Reverse Proxy Guide #6370
MorrowShore
started this conversation in
Wiki
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
OpenLiteSpeed Reverse Proxy Guide
Here's how you can set up a name-based reverse proxy to your Nextcloud on an OpenLiteSpeed server.
Courtesy of Ruikai Wang from the LiteSpeed team, and Morrow Shore.
1. Access your OpenLiteSpeed dashboard.
OpenLiteSpeed panel is installed on port 7080 per default.
You can access it by visiting <server's_IP>:7080
2. Create a new VHost.
Here's how you can create a new Virtual Host:

3. Fill in things according to this information.
Host root being
/usr/local/lsws/Example/
And the config being
/usr/local/lsws/conf/vhosts/nextcloud.conf
And enable both Restrained and Scripts/ExtApps
If you'd like to change the address of Virtual Host Root or Document Root, make sure they actually exist in the server!
4. Edit the new VHost.
Now, we must inflict some changes to the Virtual Host we just created, so click on your new VHost!
5. First check the basic tab to make sure everything's alright.
6. Add Document Root and Domain Name in the general tab.
The document Root should be
/usr/local/lsws/Example/html/
And the domain name should be where you'd like your Nextcloud to be!
7. Create an "External Application"
Select Web Server and proceed
Name it
nextcloud
Define the address as the default
127.0.0.1:11000
, or what you selected during installation8. In the same VHost, Create a "Context"
Set the new Context to proxy and proceed
Add "/" as URI, and select your Nextcloud web server
9. Go to the Listener settings
Add a new Virtual Host Mapping

Now select your Nextcloud VHost and write in your desired domain address
10. Congratulations.
Just do a graceful restart by pressing on this green restart icon, and you should be good to go.
Beta Was this translation helpful? Give feedback.
All reactions