Re: [users@httpd] how to externally redirect?

2017-09-21 Thread eeadev dev
thank you, Eric. I did it ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, " do_redirect"); r->hostname = "google.com"; ret = r->unparsed_uri; ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, " do_redirect 111"); ret =

Re: [users@httpd] how to externally redirect?

2017-09-20 Thread Eric Covener
I meant read it an editor of your choice to see how it's done. On Wed, Sep 20, 2017 at 11:21 AM, eeadev dev wrote: > shall I import the mod_alias.c file in my project or if I install the module > mod_alias.c, I can use its functions? > > 2017-09-20 16:34 GMT+02:00 Eric Covener

Re: [users@httpd] how to externally redirect?

2017-09-20 Thread eeadev dev
shall I import the mod_alias.c file in my project or if I install the module mod_alias.c, I can use its functions? 2017-09-20 16:34 GMT+02:00 Eric Covener : > > > On Wed, Sep 20, 2017 at 10:31 AM, eeadev dev wrote: > >> how can I redirect externally from my

Re: [users@httpd] how to externally redirect?

2017-09-20 Thread Eric Covener
On Wed, Sep 20, 2017 at 10:31 AM, eeadev dev wrote: > how can I redirect externally from my module? > ​Have a look at how fixup_redir() in mod_alias.c works. Set a Location header and return 301/302/... Note: This may only work in certain hooks (fixup and handler definitly) ​

[users@httpd] how to externally redirect?

2017-09-20 Thread eeadev dev
how can I redirect externally from my module? for instance under certain condition I need to go to www.google.com I saw this api void ap_internal_redirect