Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 379477 - www-servers/nginx does not create document root
Summary: www-servers/nginx does not create document root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-16 21:33 UTC by Jamie Learmonth
Modified: 2011-09-07 08:34 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jamie Learmonth 2011-08-16 21:33:34 UTC
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.
Comment 1 Johan Bergström 2011-08-23 08:46:21 UTC
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
Comment 2 Benedikt Böhm (RETIRED) gentoo-dev 2011-09-07 08:34:52 UTC
fixed, thanks