Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 70705

Summary: Upgrading apache to httpd eats /var/www/html/index.html
Product: [Retired] Red Hat Linux Reporter: Nils Philippsen <nphilipp>
Component: httpdAssignee: Joe Orton <jorton>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: chris.ricker
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-30 16:02:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 67218, 79579, 100644    

Description Nils Philippsen 2002-08-04 12:01:37 UTC
Description of Problem:

SSIA, after upgrading to httpd, I only have index.html.rpmsave (which is a copy 

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

httpd-2.0.36-7

How Reproducible:

Easily

Steps to Reproduce:
1. Upgrade from apache to httpd

Actual Results:

index.html missing

Expected Results:

index.html there, either version from package (with .rpmsave as the original
one) or (better) original user modified version.
Additional Information:

Comment 1 Joe Orton 2002-08-22 13:33:07 UTC
I don't think this is really fixable: a new feature of the 2.0 packages is that
there are no files under RPM's control in /var/www/html/ (see bug 65736), this
is  a better strategy in the long run, and causes less surprises.  So I'll class
this as a migration issue, I'll try and get it added to the docs.


Comment 2 Chris Ricker 2002-09-16 18:41:03 UTC
I just hit this as well.  It's not documented in either RELEASE_NOTES or
/usr/share/doc/httpd-2.0.40/migration.html like it should be....

Comment 3 Joe Orton 2004-09-30 16:02:18 UTC
For what it's worth now, this was fixed in FC1.

# Prevent removal of index.html on upgrades from 1.3
%triggerun -- apache < 2.0, stronghold-apache < 2.0
if [ -r %{contentdir}/index.html -a ! -r
%{contentdir}/index.html.rpmold ]; then
  mv %{contentdir}/index.html %{contentdir}/index.html.rpmold
fi