4 messages in ru.sysoev.nginxmass virtual hosting
FromSent OnAttachments
Bartłomiej SyryjczykNov 28, 2007 6:35 am 
RoxisNov 28, 2007 6:45 am 
Bartłomiej SyryjczykDec 29, 2007 3:21 pm 
Nginx support Dedicated serversDec 30, 2007 10:31 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:mass virtual hostingActions...
From:Bartłomiej Syryjczyk (guzi@public.gmane.org)
Date:Nov 28, 2007 6:35:42 am
List:ru.sysoev.nginx

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Is it posiible to use something like Apache's mod_vhost_alias (http://httpd.apache.org/docs/2.0/mod/mod_vhost_alias.html) in nginx? I want to define separately root, location and access_log (and possibly auth_basic_user_file) directives per domain. Variable $server_name works only in root. Of course I don't want to use file per domain. Interpolation like %N.M will be fine too. Example: - --- server { [...] server_name nginx _; access_log /var/log/nginx/access_$server_name.log; [...] root /srv/www/$server_name; [...] } - ---

iD8DBQFHTXzVt25UBlJ9LC4RAk7sAJ0RsI3yRx+zxybUIG7CrySXhZpaOQCdHEQK U8P6s0RXQhBJoghzLGt40C0= =ygbV -----END PGP SIGNATURE-----