DocumentRoot for docker container

#1
I am running docker container with command

Code:
docker run -d --name openlitespeed -p 7080:7080 -p 80:80 -p 443:443 -it litespeedtech/openlitespeed:1.6.9-lsphp74
When i visit my IP, i get 404 error. On which folder, i place my files to show up on the web site ?

I created index.html file in directory /var/www/vhosts/localhost/html, but nothing shows up. How do i find out which folder openlitespeed looking when i access the sevrer with IP address ?
 

Cold-Egg

Administrator
#2
Hi,

I haven't get a chance to update the doc root from image, but above method should works. I just tried again and it works fine.
Maybe you need to do a `service lsws restart` after folder creation.

FYI, we use the config template from /usr/local/lsws/conf/templates/docker.conf. so you will see the docRoot = $VH_ROOT/html/. And the VH_ROOT("member localhost") can be found from /usr/local/lsws/conf/httpd_config.conf

Let us know if you have any questions.

Best,
Eric
 
Top