Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mac2net opened this issue Jan 24, 2023 · 3 comments
Open

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

mac2net opened this issue Jan 24, 2023 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@mac2net
Copy link

mac2net commented Jan 24, 2023

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

@mac2net
Copy link
Author

mac2net commented Jan 26, 2023

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..

@timnolte
Copy link
Member

@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

@timnolte timnolte added the documentation Improvements or additions to documentation label Jan 29, 2023
@timnolte timnolte self-assigned this Jan 29, 2023
@timnolte
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants