Re: httpd URL rewrite support patch

2015-11-16 Thread Stanislaw Adaszewski
Some more fixes for style and parser syntax. Best, S. On Sun, Nov 15, 2015 at 07:46:35PM +0100, Reyk Floeter wrote: > On Sun, Nov 15, 2015 at 06:41:49PM +0100, Stanislaw Adaszewski wrote: > > Sorry again, I'm trying now with with patch as an attachment - > > when I did it the first time I think

Re: httpd URL rewrite support patch

2015-11-16 Thread Stanislaw Adaszewski
Please take a look at the modified patch. I've introduced the "pass rewrite" syntax you proposed, added support for recursive rewriting (disabled by default), fixed freeing of http_path and created separate rewrite_uri field not to interfere with the return_uri logic. Best, S. On Sun, Nov 15,

Re: httpd URL rewrite support patch

2015-11-15 Thread Stanislaw Adaszewski
Sorry again, I'm trying now with with patch as an attachment - when I did it the first time I think it wasn't accepted by the list. On Fri, Nov 13, 2015 at 05:22:22PM +0100, Bret Lambert wrote: > tech@ accepts attachments; don't make this harder for us than > it needs to be, please. > > On Fri,

Re: httpd URL rewrite support patch

2015-11-15 Thread Reyk Floeter
On Sun, Nov 15, 2015 at 06:41:49PM +0100, Stanislaw Adaszewski wrote: > Sorry again, I'm trying now with with patch as an attachment - > when I did it the first time I think it wasn't accepted by the > list. > > On Fri, Nov 13, 2015 at 05:22:22PM +0100, Bret Lambert wrote: > > tech@ accepts

Re: httpd URL rewrite support patch

2015-11-13 Thread Stanislaw Adaszewski
Excuse me, the indentation was removed because message wasn't plain text. Patch: http://pastebin.com/XnZLEPEk httpd.conf: http://pastebin.com/gGp3NqCD rewr.php: http://pastebin.com/prA1NJXC

httpd URL rewrite support patch

2015-11-13 Thread Stanislaw Adaszewski
Hello everyone, I'm new to OpenBSD and the tech@ list. I need to run a WordPress-like URL rewriting scheme for my blog. Basically URLs of the form /long-fancy-blog-post-title/ to be translated to /index.php?q=long-fancy-blog-post-title. I couldn't find this function in OpenBSD's new httpd which