Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 update overwrites index.html.*
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jmkf
n00b
n00b


Joined: 24 May 2004
Posts: 3

PostPosted: Mon May 24, 2004 10:44 pm    Post subject: apache2 update overwrites index.html.* Reply with quote

May 8th I performed an updated of the apache2 package (actually world) and I noticed that the index.html.* I updated after the initial install were overwritten by the default ones during the upgrade. Has anyone else noticed this, and what can I do to avoid this in the future?
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Mon May 24, 2004 10:57 pm    Post subject: Reply with quote

Either move your document root to somewhere other than /var/www/localhost, or add that directory to CONFIG_PROTECT in /etc/make.conf or on the command line during merges:
Code:
# export CONFIG_PROTECT=/var/www/localhosts/htdocs
# emerge -u apache
# etc-update
New files should then appear in the etc-update system.
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Back to top
View user's profile Send private message
Immortal Q
Apprentice
Apprentice


Joined: 14 Sep 2003
Posts: 241
Location: Silicone Valley

PostPosted: Mon May 24, 2004 11:52 pm    Post subject: Reply with quote

My solution is to store my sites as subdirectories of /var/www/localhost/htdocs, which, aside from the obscenely long pathname, works great - all my virtual hosts are arranged properly, and this allows things like horde and phpmyadmin to update cleanly. Does anyone else have any other arrangements that work well? Is there a "Gentoo Way" that works the best? And what else might we put in /var/www besides localhost?

Sorry about all the questions - this has been bugging me for a while.
_________________
Osmos.org
Now with 20% fewer rabid primates.
Back to top
View user's profile Send private message
jmkf
n00b
n00b


Joined: 24 May 2004
Posts: 3

PostPosted: Tue May 25, 2004 4:06 pm    Post subject: Reply with quote

I 've added /var/www/kruithof as structure that contains my information to be used on the web, and also updated the configuration files accordingly, avoid this in the future and keeping templates in /var/www/localhost. Probably I should have a look at some other applications as well.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum