litespeedtech / litespeedtech/openlitespeed
lsws does not create the virtual host root directory when adding a virtual host
- Dominant language
- C++
- Stars
- 1.5k
- Forks
- 233
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 5
Description

Hi,
After working for a long time to fix the 404 error, I finally solved the problem by creating the root directory of the virtual host.
```
sudo mkdir /usr/local/lsws/test
```
I think like the config file, lsws should show error if this directory doesn't exist.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce virtual-host creation with a root directory such as /usr/local/lsws/test absent, then trace the virtual-host configuration and validation path. Done means adding a virtual host with a missing root directory produces a clear error instead of leading to a 404; no specific files or tests are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100