php - Rewriting URL on remote site -
i manage 2 sites. first site 'foo.com' virtual host apache 2, redirect site ('1.2.3.4:1234'), nginx.
i have used rewriterule, redirect... url in browser converted '1.2.3.4:1234' when redirect done.
can maintain original url ('foo.com') somehow?
thank match.
note: probed solution post: redirect other domain maintain typed domain
but receive 503 error code next logs:
... [thu nov 06 20:50:06 2014] [debug] mod_proxy_http.c(56): proxy: http: canonicalising url //1.2.3.4:1234/ [thu nov 06 20:50:06 2014] [debug] proxy_util.c(1540): [client 82.130.187.20] proxy: *: found reverse proxy worker http://1.2.3.4:1234/ [thu nov 06 20:50:06 2014] [debug] mod_proxy.c(1020): running scheme http handler (attempt 0) [thu nov 06 20:50:06 2014] [debug] mod_proxy_http.c(1962): proxy: http: serving url http://1.2.3.4:1234/ [thu nov 06 20:50:06 2014] [debug] proxy_util.c(2026): proxy: http: has acquired connection (*) [thu nov 06 20:50:06 2014] [debug] proxy_util.c(2082): proxy: connecting http://1.2.3.4:1234/ 1.2.3.4:1234 [thu nov 06 20:50:06 2014] [debug] proxy_util.c(2209): proxy: connected / 1.2.3.4:1234 [thu nov 06 20:50:06 2014] [debug] proxy_util.c(2460): proxy: http: fam 2 socket created connect * [thu nov 06 20:51:06 2014] [error] (70007)the timeout specified has expired: proxy: http: effort connect 1.2.3.4:1234 (*) failed [thu nov 06 20:51:06 2014] [debug] proxy_util.c(2044): proxy: http: has released connection (*) 82.130.187.20 - - [06/nov/2014:20:50:06 +0100] "get / http/1.1" 503 406 [thu nov 06 20:51:08 2014] [debug] mod_proxy_http.c(56): proxy: http: canonicalising url //1.2.3.4:1234/favicon.ico [thu nov 06 20:51:08 2014] [debug] proxy_util.c(1540): [client 82.130.187.20] proxy: *: found reverse proxy worker http://1.2.3.4:1234/favicon.ico, referer: http://foo.com/ [thu nov 06 20:51:08 2014] [debug] mod_proxy.c(1020): running scheme http handler (attempt 0) [thu nov 06 20:51:08 2014] [debug] mod_proxy_http.c(1962): proxy: http: serving url http://1.2.3.4:1234/favicon.ico [thu nov 06 20:51:08 2014] [debug] proxy_util.c(2026): proxy: http: has acquired connection (*) [thu nov 06 20:51:08 2014] [debug] proxy_util.c(2082): proxy: connecting http://1.2.3.4:1234/favicon.ico 1.2.3.4:1234 [thu nov 06 20:51:08 2014] [debug] proxy_util.c(2209): proxy: connected /favicon.ico 1.2.3.4:1234 [thu nov 06 20:51:08 2014] [debug] proxy_util.c(2460): proxy: http: fam 2 socket created connect * [thu nov 06 20:52:08 2014] [error] (70007)the timeout specified has expired: proxy: http: effort connect 1.2.3.4:1234 (*) failed [thu nov 06 20:52:08 2014] [debug] proxy_util.c(2044): proxy: http: has released connection (*) ...
there many threads cover problem, seek those:
.htaccess redirect without changing address bar
subdomain redirect htaccess without changing url in address bar
http://serverfault.com/questions/235879/keeping-the-original-subdomain-url-in-the-address-bar-with-wildcard-subdomains
php apache .htaccess mod-rewrite nginx
No comments:
Post a Comment