different SLOT ebuilds shouldn't install same dir/file.
Can you suggest a fix. chuck
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...)
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.
Actually localhost_apache1/localhost_apache2 sits a bit better with me.
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).
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.
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.
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