Bug 2098363

Summary: Bad document-root
Product: [Fedora] Fedora EPEL Reporter: Jeffrey <jeffrey>
Component: lighttpdAssignee: Gwyn Ciesla <gwync>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: epel9CC: gwync, matthias, rhbugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: lighttpd-1.4.65-5.el9 lighttpd-1.4.65-5.fc35 lighttpd-1.4.65-5.fc36 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-06 00:34:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jeffrey 2022-06-18 14:13:03 UTC
Default document-root directive is
server.document-root = server_root + "/htdocs"

Desired document-root directive should be
server.document-root = server_root + "/lighttpd"

Currently, after install, visiting localhost will display error 404, as /var/www/htdocs does not exist. Default page is instead located in /var/www/lighttpd.

This is similar to 1201056.

Why is this important?
New lighttpd users who do not yet understand how lighttpd configuration works can find this a difficult problem to get past.
Providing working configuration can provide a "learning by example" experience instead of the unwelcoming "learning by googling solutions to problems which other people do not seem to have".

Comment 1 Jeffrey 2022-06-18 14:17:02 UTC
Proposed solution:

--- Documents/lighttpd/lighttpd.conf	2022-06-18 14:57:28.444534489 +0200
+++ Documents/lighttpd-patch/lighttpd.conf	2022-06-18 16:15:29.236326774 +0200
@@ -118,7 +118,7 @@
 ##
 ## Document root
 ##
-server.document-root = server_root + "/htdocs"
+server.document-root = server_root + "/lighttpd"
 
 ##
 ## The value for the "Server:" response field.

Comment 2 Fedora Update System 2022-07-28 16:11:22 UTC
FEDORA-2022-736028ac08 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-736028ac08

Comment 3 Fedora Update System 2022-07-28 16:11:24 UTC
FEDORA-EPEL-2022-5dd663eafb has been submitted as an update to Fedora EPEL 9. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-5dd663eafb

Comment 4 Fedora Update System 2022-07-28 16:11:24 UTC
FEDORA-2022-bedc0ba06a has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-bedc0ba06a

Comment 5 Fedora Update System 2022-07-29 00:33:03 UTC
FEDORA-EPEL-2022-5dd663eafb has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-5dd663eafb

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2022-07-29 01:23:38 UTC
FEDORA-2022-736028ac08 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-736028ac08`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-736028ac08

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2022-07-29 01:43:58 UTC
FEDORA-2022-bedc0ba06a has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-bedc0ba06a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-bedc0ba06a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2022-08-06 00:34:00 UTC
FEDORA-EPEL-2022-5dd663eafb has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2022-08-06 01:41:08 UTC
FEDORA-2022-bedc0ba06a has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 10 Fedora Update System 2022-08-06 01:52:26 UTC
FEDORA-2022-736028ac08 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.