Redirect webpage to different host

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Redirect webpage to different host

Postby imperatorzorg » 11. April 2019 12:49

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!
imperatorzorg
 
Posts: 1
Joined: 11. April 2019 12:39
XAMPP version: 2.4
Operating System: Centos 7

Re: Redirect webpage to different host

Postby Nobbie » 12. April 2019 00:42

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.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 28 guests