0

I have searched, and thought that I might have the answers from either of these two posts:

However, those options haven't worked for me, and I think it is because I am trying to redirect to something that isn't an object in the web directory, but it is just a game service running on a port.

Specifically: I want a URL, like domain.com/gameService, to redirect to the specific port on the server, like domain.com:gameServicePort. In the example, domain.com IS on DNS and I can reach the server itself, "gameService" is the placeholder for the service name, and "gameServicePort" is the placeholder for the port that the service is running on.

Update 1

Based on this link provided by @Orphan below, I have now tried both of the following as part of my vhost.conf, but to no avail - I still keep getting the 404 error of "Object not found!":

 <Location "/7dtd/"> ProxyRequests off ProxyPass "http://127.0.0.1:8080/" </Location> 

and

 NameVirtualHost *:80 <VirtualHost *:80> ProxyRequests off ProxyPass "/7dtd" http://127.0.0.1:8080/ ProxyPassReverse "/7dtd" http://127.0.0.1:8080/ </VirtualHost> 

I have also attempted to learn from the documentation itself in reference to Gerald Schneider's comment below, but also have had no such luck.

Obviously, I am doing something wrong or just plain missing something, but I'm just not seeing it. Please be direct with me as the documentation seems unclear to me...

Thank you for any assistance!

2
  • The search term you are looking for is reverse proxy Commented Jun 9, 2018 at 4:58
  • I can just refer to this question serverfault.com/questions/799012/… Commented Jun 9, 2018 at 10:23

1 Answer 1

0

It seems that the problem was in syntax (perhaps). The following is exactly what I have in my 7dtd.conf file at the time of this posting (tabs and all).

ProxyRequests off ProxyPass "/7dtd/cpnl" http://localhost:8080/ ProxyPassReverse "/7dtd/cpnl" http://localhost:8080/ 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.