Welcome! Log In Create A New Profile

Advanced

Re: Having issues with nginx / root captures (0.7.53)

May 01, 2009 02:53AM
2009/4/30 Igor Sysoev <is@rambler-co.ru>:

>           server_name  ~...
>
>           set  $name  $1;
>
>           root  /....$name;


server {
listen 80;
index index.php index.html;
server_name ~^foo(.+)\.mike\.bar\.com$;
set $name $1;
root /home/mike/web/foo$name;
include /etc/nginx/defaults.conf;
# include /etc/nginx/development.conf;
# include /etc/nginx/expires.conf;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:11001;
}
# include /etc/nginx/redfort.conf;
}

like that?

you saw development.conf in the last email...


expires.conf (this causes an issue)

location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
expires max;
access_log off;
}


defaults.conf (this is okay):

location ~ /\.ht {
deny all;
}

location = /robots.txt {
log_not_found off;
}

location = /favicon.ico {
log_not_found off;
}

log_not_found off;


any ideas on how to get development.conf and defaults.conf to work
with the root regex? even with the "set" it still seems to not capture
it at the right time.
Subject Author Posted

Having issues with nginx / root captures (0.7.53)

mike April 30, 2009 06:51PM

Re: Having issues with nginx / root captures (0.7.53)

Igor Sysoev May 01, 2009 01:57AM

Re: Having issues with nginx / root captures (0.7.53)

mike May 01, 2009 02:16AM

Re: Having issues with nginx / root captures (0.7.53)

mike May 01, 2009 02:49AM

Re: Having issues with nginx / root captures (0.7.53)

Igor Sysoev May 01, 2009 02:41AM

Re: Having issues with nginx / root captures (0.7.53)

mike May 01, 2009 02:26AM

Re: Having issues with nginx / root captures (0.7.53)

Igor Sysoev May 01, 2009 02:38AM

Re: Having issues with nginx / root captures (0.7.53)

mike May 01, 2009 02:53AM

Re: Having issues with nginx / root captures (0.7.53)

Igor Sysoev May 01, 2009 02:54AM

Re: Having issues with nginx / root captures (0.7.53)

Igor Sysoev May 01, 2009 03:15AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 141
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready