apache - How to redirect subfolder as proxy in htaccess? -


i have isso app running on localhost:63837 , i'd proxy requests https://www.domain.com/isso

these approaches:

rewriterule https://www.domain.com/isso/(.*)$ http://127.0.0.1:63837/$1 [p]  rewriterule /isso/(.*)$ http://127.0.0.1:63837/$1 [p]  rewriterule /isso(.*)$ http://127.0.0.1:63837/$1 [p] 

normally i'd adjust httpd-vhost.conf in case can't on hoster (uberspace).

<location "/isso">   proxypass "http://127.0.0.1:63837"   proxypassreverse "http://127.0.0.1:63837" </location> 

also, don't use subdomain this.

your second approach correct (in fact, work in .conf file).

in per-directory context (directory or .htaccess), pattern matched against partial path: directory path rule defined stripped path before comparison - , including trailing slash!. removed prefix ends slash, meaning matching occurs against string never has leading slash.

therefore:

rewriterule ^isso/(.*)$ http://127.0.0.1:63837/$1 [p] 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -