Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49497 - conflict /var/www/localhost in apache1 and apache2.
Summary: conflict /var/www/localhost in apache1 and apache2.
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-30 07:15 UTC by Masatomo Nakano (RETIRED)
Modified: 2004-12-02 13:00 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
change the defaullt doc roots base on the apache version (apache-docroot.patch,21.09 KB, patch)
2004-05-14 22:35 UTC, David Stanek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Masatomo Nakano (RETIRED) gentoo-dev 2004-04-30 07:15:12 UTC
different SLOT ebuilds shouldn't install same dir/file.
Comment 1 Chuck Short (RETIRED) gentoo-dev 2004-04-30 07:18:18 UTC
Can you suggest a fix.

chuck
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2004-04-30 07:24:12 UTC
I'm not apache herd member..

But my simple suggestion is..
/var/www/localhost_1
/var/www/localhost_2

(Or, 
/var/www/apache1/localhost, /var/www/apache2/localhost.
It's better than previous one.
But this change would make user confusing...)
Comment 3 David Stanek 2004-05-02 11:49:36 UTC
I have not issues with either of the two solutions, but I do want to add in the 2 cents.  I think maybe we could use /var/www/default_apache1 and /var/www/default_apache2 for the default websites.  This will leave it up the the administrator to decide exactly what /var/www structure they would like to have. 

I assume most people that run Apache1 and Apache2 hava a specific reason and they handle handle their requirements better than us. Although we may want to provide a sort of guide do dual versions, maybe a best practices.
Comment 4 David Stanek 2004-05-02 11:57:04 UTC
Actually localhost_apache1/localhost_apache2 sits a bit better with me.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-03 20:15:47 UTC
while apache is slotted for it's major version, if you want to run both of them together, you are mainly on your own.

I'd like to offer a third solution.
K=/var/www/localhost
$K/error only exists in apache2
$K/icons contains identical content in both apache2 and apache1 AFAIK.
$K/cgi-bin contains identical content in both apache2 and apache1 AFAIK.
so lets put the apache1 content into
$K/htdocs/apache1-default/
and apache2 content into
$K/htdocs/apache2-default/
and then put something gentoo-specific into $K/htdocs directly.

icons, cgi-bin and the gentoo specific content can come from a new package.
and then the other dirs come from their respective packages, and we don't need to change the /srv directory layout concepts at all. (there was a glep on it iirc).
Comment 6 David Stanek 2004-05-14 22:32:06 UTC
For a proof of concept I have created a patch for this. apache-1.x uses /var/www/localhost_apach1 and apache-2.x uses /var/www/localhost_apache2 as their datadir.

For the older apache ebuilds I changed the apache user's home directory to /var/www. This is actually now handled by baselayout. The interesting thing here is that the baselayout package uses the older /home/httpd directory for the apache user. I was going to file a bug for that, but I was not sure what the path should be. If this patch is accepted or a variant of it, then the home directory will probably be /var/www. Otherwise as it sits right now it should be /var/www/localhost.
Comment 7 David Stanek 2004-05-14 22:35:35 UTC
Created attachment 31456 [details, diff]
change the defaullt doc roots base on the apache version

To test I just installed the webserver and ran a few pages. I tested on
versions, 1.3.29-r1, 1.3.31, and 1.0.49-r1. Everything seemed of for me.
Comment 8 Stuart Herbert (RETIRED) gentoo-dev 2004-12-02 13:00:20 UTC
We're going to make the contents of /var/www/localhost/htdocs a separate package, so that we don't overwrite user websites in future, but /var/www/localhost/htdocs will remain the default DocumentRoot for all of our web servers.  We're not going to change that.

Why?  Because we're moving towards making the webservers more interchangable.  And we can't do that if they all default to separate DocumentRoots.

Best regards,
Stu