ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] replace regexp в nginx rewrite правиле
@ 2011-11-26 11:14 Michael Bykov
  2011-11-26 17:17 ` Sergey Vlasov
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Bykov @ 2011-11-26 11:14 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

Салют,

господа, помогите, пожалуйста, кто чем может, сами мы не местные...

мне нужно в правиле nginx заменить путь с /a/b/c/d... etc на /a_b_c_d... etc

поиск в гугле не дал результатов ввиду идиотизма проблемы. Но в данном
случае очень нужно.

В сизифовском nginx нет perl'а, на перле было бы проще

Вот это неправильно:

rewrite / _ permanent;

rewrite ^(([^/]*)/) $2/ permanent;

а как правильно?

Сорри :(


-- 
М.

http://diglossa.ru
xmpp://m.bykov@jabber.ru

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-27  5:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-26 11:14 [sisyphus] replace regexp в nginx rewrite правиле Michael Bykov
2011-11-26 17:17 ` Sergey Vlasov
2011-11-27  5:07   ` Michael Bykov

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git