André M. Faria
André M. Faria

Reputation: 2162

Apache redirect with a relative path

I want to clear a doubt, it's possible in Apache to make "Alias" (Mask) to another port ??

Let I make a use of example:

In my Server I have Apache running in *:80 and another application running *:8080, Inside a domain called www.example.com.

So, What I'm think is if is possible and how can I do to make a "ALIAS" to if I use www.example.com\other to redirect to www.example.com:8080\gui.

And it is possible to mask this name to be example.com\other?

As said, I've enabled mod_proxy to use ProxyPass and ProxyPassReverse

This was my first try with ProxyPass ProxyPass /foo http://domain.com:5780 ProxyPassReverse /foo http://domain.com:5780

When I tried to access http://myown.com/foo it redirected to the domain selected but did not loaded the images, I did not saw that before because the images are at the page bottom.

I have read some page about mod_rewrite, mod_alias, redirect and mod_proxy, I've edited my apache config and it's not working properly.

Upvotes: 1

Views: 1654

Answers (1)

Ian Stevens
Ian Stevens

Reputation: 794

The answer depends on what application is running on port 8080.

Upvotes: 1

Related Questions