[opensuse-buildservice] lighttpd config for repo hosting on build server
Hi, I'm not that experienced with http server configuration, and I hope someone can help me here. I am running my own build service and want to host the repositories from the same server - ie change the software.opensuse.org/download links to a point to a subdirectory url on my build server machine. I can't figure out how to get lighttpd to _not_ pass a specific url (and all subdirs) to rails, and just handle as a normal http request. It looks like the $HTTP["url"] conditional would do the trick, but no matter how I try to use it, I can't get this to work in harmony with rails. Here is an example of what I am trying to do in obs.conf. I have tried many variations without luck: $HTTP["host"] =~ "partnerbuild(|.suse.de)" { rails_app = "webclient" rails_root = "/srv/www/obs/webclient" rails_procs = 5 # production/development are typical values here rails_mode = "development" log_root = "/srv/www/obs/webclient/log" include "vhosts.d/rails.inc" alias.url = ( "/repos/" => "/srv/obs/repos/" ) $HTTP["url"] =~ "/repos/" { dir-listing.activate = "enable" server.document-root = "/srv/obs/repos/" } } Thanks, Scott --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2007-08-24 13:31:33 +0200, Scott Bahling wrote:
I'm not that experienced with http server configuration, and I hope someone can help me here. I am running my own build service and want to host the repositories from the same server - ie change the software.opensuse.org/download links to a point to a subdirectory url on my build server machine. I can't figure out how to get lighttpd to _not_ pass a specific url (and all subdirs) to rails, and just handle as a normal http request.
It looks like the $HTTP["url"] conditional would do the trick, but no matter how I try to use it, I can't get this to work in harmony with rails.
Here is an example of what I am trying to do in obs.conf. I have tried many variations without luck:
$HTTP["host"] =~ "partnerbuild(|.suse.de)" { rails_app = "webclient" rails_root = "/srv/www/obs/webclient" rails_procs = 5 # production/development are typical values here rails_mode = "development"
log_root = "/srv/www/obs/webclient/log"
include "vhosts.d/rails.inc"
alias.url = ( "/repos/" => "/srv/obs/repos/" ) $HTTP["url"] =~ "/repos/" { dir-listing.activate = "enable" server.document-root = "/srv/obs/repos/" }
}
the mod_magnet script overrides that. try the following $HTTP["host"] =~ "partnerbuild(|.suse.de)" { rails_app = "webclient" rails_root = "/srv/www/obs/webclient" rails_procs = 5 # production/development are typical values here rails_mode = "development" log_root = "/srv/www/obs/webclient/log" alias.url = ( "/repos/" => "/srv/obs/repos/" ) $HTTP["url"] =~ "^/repos/" { dir-listing.activate = "enable" } else $HTTP["url"] !~ "^/repos/" { include "vhosts.d/rails.inc" } } darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, 2007-08-24 at 18:25 +0200, Marcus Rueckert wrote: [...]
the mod_magnet script overrides that.
try the following
[...] perfect! thanks! -Scott --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Marcus Rueckert
-
Scott Bahling