Bug 1310036 - Wrong Server_root
Summary: Wrong Server_root
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: lighttpd
Version: epel7
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-19 09:53 UTC by Carmen PGC
Modified: 2016-08-22 14:50 UTC (History)
2 users (show)

Fixed In Version: lighttpd-1.4.39-3.fc23 lighttpd-1.4.39-3.fc22 lighttpd-1.4.39-3.el5 lighttpd-1.4.39-3.el7 lighttpd-1.4.39-3.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-11 13:27:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Carmen PGC 2016-02-19 09:53:11 UTC
Description of problem:
When installing Lighttpd 1.4.39 at Centos 7.2 it gives "404 - Not Found" at http://localhost

Version-Release number of selected component (if applicable):
1.4.39

How reproducible:
Install Lighttpd at Centos 72 and open Web browser page http://localhost

Steps to Reproduce:
1.Install Lighttpd 1.4.39
2.Start Lighttpd service 
3.Open http://localhost with browser. 


Actual results:
404 - Not Found

Expected results:
Welcome Page.

Additional info:

When installing lighttpd 1.4.39, it seems to be a conflict at:
- var.server_root value in lighttpd.conf (/srv/www) with 
- index.html location (/var/www/...)

It seems that lighttpd.spec (http://pkgs.fedoraproject.org/cgit/rpms/lighttpd.git/tree/lighttpd.spec?h=f23&id=56c8eb503c24d06e3ec8d140d2085686c3a75b26) says:

----------------------------------------------------------------------------
%define webroot /var/www/lighttpd
...
Source101: lighttpd-mod_geoip.txt
#Patch0: lighttpd-1.4.28-defaultconf.patch
Patch1: lighttpd-1.4.34-mod_geoip.patch
...
%changelog
* Mon Dec 07 2015 Jon Ciesla <limburgher> - 1.4.38-1
- 1.4.38, BZ 1288708.
- defaultconf patch upstreamed.
...
----------------------------------------------------------------------------

(Defaultconf patch changes var.server_root from /srv/www to /var/www)

But this patch actually is not applied as we see in lighttpd.conf at https://redmine.lighttpd.net/projects/lighttpd/repository/entry/branches/lighttpd-1.4.x/doc/config/lighttpd.conf:

---------------------------------------------------------------------------
var.server_root = "/srv/www"
---------------------------------------------------------------------------

Comment 1 Fedora Update System 2016-03-01 15:55:29 UTC
lighttpd-1.4.39-3.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-a0986c5a91

Comment 2 Fedora Update System 2016-03-01 15:55:29 UTC
lighttpd-1.4.39-3.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-09781a362b

Comment 3 Fedora Update System 2016-03-01 15:55:34 UTC
lighttpd-1.4.39-3.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-52c9c8e391

Comment 4 Fedora Update System 2016-03-01 15:55:35 UTC
lighttpd-1.4.39-3.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1635016e1d

Comment 5 Fedora Update System 2016-03-01 15:55:38 UTC
lighttpd-1.4.39-3.el5 has been submitted as an update to Fedora EPEL 5. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-ccce288563

Comment 6 Fedora Update System 2016-03-02 02:17:43 UTC
lighttpd-1.4.39-3.el5 has been pushed to the Fedora EPEL 5 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-ccce288563

Comment 7 Fedora Update System 2016-03-02 02:20:26 UTC
lighttpd-1.4.39-3.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-52c9c8e391

Comment 8 Fedora Update System 2016-03-02 02:23:14 UTC
lighttpd-1.4.39-3.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-a0986c5a91

Comment 9 Fedora Update System 2016-03-02 03:31:58 UTC
lighttpd-1.4.39-3.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-1635016e1d

Comment 10 Fedora Update System 2016-03-02 12:52:26 UTC
lighttpd-1.4.39-3.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-09781a362b

Comment 11 Fedora Update System 2016-03-11 13:27:43 UTC
lighttpd-1.4.39-3.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 12 Fedora Update System 2016-03-12 00:51:33 UTC
lighttpd-1.4.39-3.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2016-03-17 18:25:19 UTC
lighttpd-1.4.39-3.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2016-03-17 18:59:37 UTC
lighttpd-1.4.39-3.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2016-03-17 19:29:24 UTC
lighttpd-1.4.39-3.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Anssi Johansson 2016-08-21 18:08:41 UTC
I installed lighttpd-1.4.41-1.el7 on a freshly installed CentOS 7.2 host and started it without making any changes. When I tried to access the newly installed web server, I was greeted with a 404.

Relevant config:

var.server_root = "/var/www"
server.document-root = server_root + "/htdocs"

index.html is in /var/www/lighttpd

Changing the document-root to server_root + "/lighttpd" fixed the problem.

Comment 17 Gwyn Ciesla 2016-08-22 14:50:01 UTC
I'll be fixing this in https://bugzilla.redhat.com/show_bug.cgi?id=1201056


Note You need to log in before you can comment on or make changes to this bug.