The current nginx ebuild does not create it's default document root if it is not present which means it does not work "out-the-box" on a fresh Gentoo install. This is inconsistent with other popular alternatives such as apache which creates it in the pkg_postinst and lighttpd which creates it on enewuser. Reproducible: Always Actual Results: User needs to manaually work out which directories to create, Expected Results: /var/www/localhost/htdocs is automatically created if it does not exist.
Patch: --- nginx-1.0.5.ebuild 2011-07-25 11:26:54.000000000 +0200 +++ nginx-1.0.5-r1.ebuild 2011-08-23 09:58:10.000000000 +0200 @@ -283,7 +283,7 @@ } src_install() { - keepdir /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi,scgi,uwsgi} + keepdir /var/www/localhost/htdocs /var/log/${PN} /var/tmp/${PN}/{client,proxy,fastcgi,scgi,uwsgi} dosbin objs/nginx newinitd "${FILESDIR}"/nginx.init-r2 nginx
fixed, thanks