Merge pull request #13 from globalcitizen/lighttpd-fix

Add upload fix
This commit is contained in:
Valeriy Sizov
2012-10-02 07:31:26 -07:00

View File

@@ -15,8 +15,13 @@ simple-vhost.document-root = "htdocs"
## the default host if no host is sent
simple-vhost.default-host = "YOUR_SERVER_FQDN"
$HTTP["host"] == "YOUR_SERVER_FQDN" {
## uploads must be served as static files
$HTTP["url"] == "^/upload" {
var.vhost.name = "YOUR_SERVER_FQDN"
var.vhost.path = "/home/gitlab/gitlab/public"
}
## otherwise everything is proxied
else $HTTP["host"] == "YOUR_SERVER_FQDN" {
var.vhost_name = "YOUR_SERVER_FQDN"
var.vhost_path = "/var/www/YOUR_SERVER_FQDN" # This directory should be empty