litespeedtech / litespeedtech/openlitespeed

lsws does not create the virtual host root directory when adding a virtual host

Open
#398 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
1.5k
Forks
233
Avg merge
2d 19h
Merged PRs (30d)
5

Description

![image](https://github.com/litespeedtech/openlitespeed/assets/6462878/c4bcb4cb-215d-4cef-8901-4be11911a4a8)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.