proxy - Apache mod_proxy - Pass through from localhost to another domain? -


i'm not @ experienced when using proxies possible.

i have apache running on development machine hosts website (www.testdomain.com). need @ www.testdomain.com phone. don't want root phone can enter ip address of machine (10.8.0.1). site hosted @ www.testdomain.com won't work correctly default site in apache.

i need way of passing through request 10.8.0.1 www.testdomain.com without phone having dns record www.testdomanin.com

is possible using mod_proxy? there else job?

first of all, don't understand why can't point cellphone browser www.testdomain.com.

anyway, use proxy, think better approach use serveralias directive in www.testdomain.com vhost:

<virtualhost *:80>     servername www.testdomain.com     serveralias 10.8.0.1     (...) 

if still want use proxy, setup different vhost 10.8.0.1:

<virtualhost *:80>     servername 10.8.0.1     errorlog ...     transferlog ...     loglevel warn      # reverseproxy     proxyrequests off     proxypreservehost on     proxypass        / http://www.testdomain.com/     proxypassreverse / http://www.testdomain.com/     (...) 

ref: http://httpd.apache.org/docs/current/vhosts/name-based.html


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -