hi…
i have 2 apache server… server1 can be access by public. www.example.com. server2 is a local server
on server1 i have other web directory. www.example.com/web1 , www.example.com/web2
i am using alias /web1 to make client can access www.example.com/web1
i have make new content on server2 for web1 from local network i can access the newweb1 using http://ipserver2/newweb1
so now how can i make client from public to access newweb1 using url www.example.com/web1
i have try using proxypass but the hyperlink inside newweb1 is point to ip address for local server2.
tq
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey friend!
You are on the right path with proxypass, reverse proxy is how you handle the task at hand. The reason the links are going to the IP is that the site at IP/newweb1 is configured that way. I’m betting it’s a Wordpress site, those hard code their URL into them when set up. It can be changed though, and there are some steps for doing so here:
https://codex.wordpress.org/Changing_The_Site_URL
If I’ve made a wrong assumption, let me know :)
Jarland
i already include inside apache server1 config
ProxyPreserveHost on
ProxyPass /web1 http://server2ip/newweb1
ProxyPassReverse /web1 http://server2ip/newweb1
i’am using Joomla 3.8
newweb1 can be access by url www.example.com/web1 but the hyperlink inside the web is refer to the local ip address.
Thank you in advanced
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.