Niestety dzierżawa serwera wygasła a ja pogubiłem i pliki i poradniki

Teraz stałem się posiadaczem kolejnego serwera, już na stałe, i przy okazji chciałem przekierować subdomenę na niego.
U dostawcy domeny subdomena ma podany adres IP mojego serwera, i od razu odpala się główny folder ustawiony w Lighttpd.
Teraz mam pytanie, co mam zrobić by po wpisaniu samego IP w przeglądarkę, odpalił się główny folder Lighttpd, a gdy wpiszę adres subdomeny (dajmy na to sub1.problem.pl (wraz z WWW)) na konkretny folder na serwerze ?
Obecny plik lighttpd.conf wygląda następująco:
Kod: Zaznacz cały
server.modules = (
        "mod_access",
        "mod_alias",
        "mod_compress",
        "mod_redirect",
        "mod_auth"
)
server.document-root        = "/home/www-data/www"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80
dir-listing.activate        = "enable"
server.follow-symlink       = "enable"
auth.debug                  = 2
auth.backend                = "plain"
auth.backend.plain.userfile = "/home/www-data/.www-pass"
index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"
# Dostep zaszyfrowany
auth.require = ( "/il/" =>
(
"method" => "basic",
"realm" => "Password protected area",
"require" => "user=www-data"
)
)
$HTTP["host"] == "sub1.problem.pl" {
server.document-root = "/home/www-data/www/sub1/"
}

