Page 1 of 1

Redirect webpage to different host

PostPosted: 11. April 2019 12:49
by imperatorzorg
I'm working on a project to share my other hosts webgui on the same website. For example my website runs on Apache 2.4 on Centos and I want to redirect webpage "/webgui" to another host (e.g 10.0.0.1:8080) running in the same vlan. I tried to experiment with this setup but no luck and I'm not sure what I'm doing wrong. Any help would be appreciated. Thanks!

Re: Redirect webpage to different host

PostPosted: 12. April 2019 00:42
by Nobbie
imperatorzorg wrote:I tried to experiment with this setup but no luck and I'm not sure what I'm doing wrong.


So what is your setup, unfortunately you did not tell us anything about it? What did you do?
And at next, "no luck" is not a usefull error message, neither a good description. What happens actually, and what did you expect to happen? And do you get any error message (which?)? Or what is going on?

Currently, with that poor amount of information, nobody can help you in any way.

Anyway, the first thing what cames to my mind, edit your httpd.conf file and add the redirect to the DocumentRoot Directory. It should look similar to this:

Code: Select all
<Directory "c:/xampp/htdocs">
Redirect /webgui http://10.0.0.1:8080
...


If you cannot or will not edit your Apache configuration, you can also instead create an .htaccess file, either in DocumentRoot or in your webgui folder and insert exactly that one Redirect line.