some more progress:
made some more progress with the help of some guys on IRC it seems these lines work:
as 127.0.0.1 is enough, no need to use $host there as this is a reverse proxy, nginx and apache2 are on the same box.
and another suggestion to solve the www vs non-www problem was something like this:
Quote:
|
set $site_dir $host; if ($host ~ ^www\.(.*)) { set $site_dir $1; } root /var/www/$site_dir/web;
|
but I can't put it togetehr alone. also would it not need an else statement to keep
in case the non-www version was called?