Welcome! Log In Create A New Profile

Advanced

Re: Помогите с реврайтом

November 22, 2009 04:45PM
если не сложно, в конфиге куда вставить, на пальцах ибо не силен.
server {
listen 80;
server_name *.domain.com;


# serve static files
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|htm|swf)$ {
root /var/sites/site2/;
expires 1d;
}
location /gallery/ { # пробовал так 404 ошибка
rewrite ^/gallery/.*\.html$ /st/st.php?$query_string;
}
location / {
proxy_pass http://65.121.164.234:8080;
}
}
Subject Author Posted

Помогите с реврайтом

marvine November 20, 2009 05:58PM

Re: Помогите с реврайтом

Alex, the Marrch Ca'at November 20, 2009 06:20PM

Re: Помогите с реврайтом

marvine November 20, 2009 06:43PM

Re: Помогите с реврайтом

Alex, the Marrch Ca'at November 20, 2009 08:00PM

Re: Помогите с реврайтом

marvine November 20, 2009 08:15PM

Re: Помогите с реврайтом

Alex, the Marrch Ca'at November 21, 2009 10:22PM

Re: Помогите с реврайтом

marvine November 22, 2009 04:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 125
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready