ndigitals / ols-dockerfiles

Unofficial build of OpenLiteSpeed, High Performance, HTTP/3 supported, ready to use on arm64.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting 404 in /var/www/vhosts/localhost/html

mac2net opened this issue · comments

Hi Tim
Everything seems to be working. I even added Examples/ to work on port 8088 with https.
I dumped a new download of Wordpress in to /var/www/vhosts/localhost/html and I get a 404 on the IP address.
Also tried switching the owner to nobody:nogroup but that didn't work.
Dashboard is not showing an error for listeners or hosts, but I see this error message in the log
[2028] [PlainConf] [virtualHostConfig:] Failed to RCS checkin conf file /usr/local/lsws/conf/vhosts/localhost/vhconf.conf0, ret 32512, error(Invalid argument). Org command is ci -l -q -t-"/usr/local/lsws/conf/vhosts/localhost/vhconf.conf0" -mUpdate "/usr/local/lsws/conf/vhosts/localhost/vhconf.conf0" >/dev/null 2

Cheers
Mike

Sorry new to Docker although experienced with OLS.

I got everything working on a MacBook Air M2. I am running it through a Parallels Ubuntu 22.04 server VM and I used CasaOS to deploy the docker container and add 2 external volumes – one for conf and the other for sites. I added a wp instance there. I am running mariadb native on the VM, so I had to connect the web server and DB via the host IP.

I converted the Example and the template to use the external storage.

The VM I am using has 3 cores allocated, 24GB of space and 4GB RAM right now..

@mac2net sorry, I'm just now seeing this, not sure why I missed the email notification. So I do currently have this working with a WordPress installation, and I'm pretty sure it came down to the default OLS settings being to look for an index.html file only and not also look for a index.php. Here is what my docker template looks like on the "General" settings tab:

image

@mac2net have you tried deploying this image to a server environment or are you only using it for local development purposes?