Welcome! Log In Create A New Profile

Advanced

Re: location question

Tomasz Pajor
September 03, 2009 09:44AM
> On Thu, Sep 03, 2009 at 01:59:52PM +0200, Tomasz Pajor wrote:
>
>
>> For those who would want to use such a setup:
>>
>> location ~ ^/imgheaders/(.*)$ {
>> root /vhosts/static/img/headers;
>> try_files /$1 @headers;
>> }
>>
>
> location /imgheaders/ {
> alias /vhosts/static/img/headers/;
> try_files $uri @headers;
> }
>
this doesn't work, maybe because i have one more location, this are all
locations in that server space.

location ^~ /imgheaders/ {
alias /vhosts/static/img/headers;
try_files $uri @headers;
}

location @headers {
fastcgi_pass unix:/var/run/spawn-fcgi.sock;
fastcgi_param SCRIPT_FILENAME /vhosts/test/ImageText.php;
include fastcgi_params;
}

location ~* ^.+\.(js|ico|gif|jpg|png|css|swf|xml|xsl|flv|cur|mp3)$ {
root /vhosts/static;
access_log off;
expires 30d;
}
Subject Author Posted

location question

Tomasz Pajor September 03, 2009 05:36AM

Re: location question

Igor Sysoev September 03, 2009 05:36AM

Re: location question

Igor Sysoev September 03, 2009 05:44AM

Re: location question

Tomasz Pajor September 03, 2009 07:06AM

Re: location question

Tomasz Pajor September 03, 2009 08:20AM

Re: location question

Igor Sysoev September 03, 2009 08:26AM

Re: location question

Tomasz Pajor September 03, 2009 09:44AM

Re: location question

Igor Sysoev September 03, 2009 09:52AM

Re: location question

Jeff Waugh September 03, 2009 10:10AM

Re: location question

Igor Sysoev September 03, 2009 08:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready