|
|
|
|
АРХИВ :: nginx-ru
|
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Помогите с rewrite правилами, пожалуйста!
- To: nginx-ru@xxxxxxxxx
- Subject: Помогите с rewrite правилами, пожалуйста!
- From: "Vettchinov Mihail" <kpblca83@xxxxxxxxx>
- Date: Tue, 18 Sep 2007 13:07:39 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=0VkZdg64RbB08e4YJMilEC3y2XaGBmdVoIFGPXb7BQI=; b=FyVKiv7hKZ48qLztJHiZQk25zaXtg7VD/wCdsa5bBqAnf6K50sAj0hkxo1hrDtNR3uDShTRzZvXUihbB74zFU8koOO9CSPboq3HtfPhj9M2f3dgkXFyPP28uMhGHoYiioHOOr6F+n8BvxvR7xgdE0iyILdLedPkRDXJhPkevj2A=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Q2Ax+vZrhnG/8l66DMiNCO5U/OmmOxz6woKkAH6dOLZ21rLKr8F8zGRS2LtNNOtmnWhn9iV0FNrO2+x9xViGJgyUGvsEDM76T4QEWry36fQMi+EYF//fVMAVMPLnTt5fYQszi62C2sXHZeAFAqWuNpxFYXxrB2nP7J92sUjS/k8=
- In-reply-to: <7fbf4cb90709180202h6f666244ibdf81d8ad38fbd6d@xxxxxxxxxxxxxx>
- References: <7fbf4cb90709180202h6f666244ibdf81d8ad38fbd6d@xxxxxxxxxxxxxx>
Добрый день!
А не поможете перевести правила из апача в нгингс? Я перечитал всю небогатую документацию на нгинкс так ничего и не понял :(
RewriteCond %{HTTP_HOST} ^hostname.ru$
[NC] RewriteRule ^(.*)$ http://www.hostname.ru/$1 [R=301,L] RewriteCond %{QUERY_STRING} .+ RewriteRule ^/*$ http://%{HTTP_HOST}/? [R=301]
|
|
|