Point Webadmin to subdomain

#1
Is there a way to point the webadmin interface (<IP>:7080) to a subdomain?
Example: I have my site (virutalhost, listener) pointed to mysite.com and I want the webadmin interface to listen at admin.mysite.com.

I've read online that this can be done but I was not able to find any tutorials or examples.
As a side note I need to also point out that the site runs through Cloudflare which from what I've seen does not allow traffic via port 7080 so that will also so change to 443.

Thanks in advance and I apologize for my lack of knowledge but this is my first OpenLiteSpeed installation (installed via GCP).
 

Cold-Egg

Administrator
#2
#3
Thank you so much for the support but I already know about the steps you've mentioned. The only thing I can't understand is how to point the WebAdmin interface to the subdomain. I know that I have to create a new VirtualHost with the subdomain but what after that?
 
#5
Thank you so much for your help! I will implement the steps you provided and hopefully get it working.
On a side note... every time I login via SSH a script that asks for my domain keeps popping up even though I completed the steps the first time. Is there a way to disable that script?
 

Cold-Egg

Administrator
#6
If you finish all the steps, script will be removed automatically.
To remove it manually is easy, vi /etc/profile and remove the "sudo /opt/domainsetup.sh" entry.
 
#7
That was indeed very weird. Even though I have finished all the steps (add domain, enable Let's Encrypt) the script always continued to pop up.
The solution you provided worked like a charm. Thank you so much for your help. Much appreciated.
 
#8
Once you setup the virtual host and add the sub domain to the existing 80/443 listener, also web admin port set to e.g. 8443, then you should be able to visit web admin through https://subdomain:8443.
Is there a way to not use ":8443" part in https://subdomain:8443 and still configure it to webadmin panel?

I have 2 virtual hosts, first one being the example which has the subdomain connected to it and the second one is the main site with main domain connected to it.
 
#10
Just to clarify, do you mean https://subdomain:8443 is for web admin panel only instead of access to the site?
yess the subdomain is for web panel only.

for the main site i have different domain

so lets say i have two domains
domain1.com and domain2.com

domain1.com is hosted on other server
domain2.com is hosted on OLS server

dashboard.domain1.com:7080 is used to access OLS webadmin panel
and domain2.com is used to access the website

Now what i wanted to know is, whether it is possible to access the webadmin panel from 'dashboard.domain1.com' instead of 'dashboard.domain1.com:7080'

I am new to OLS
 
Top