PDA

View Full Version : site forwarding


magicked
9-8-04, 10:49 PM
I just set up a dedicated game server at home, and I have been looking (googling and whatnot) for a way to link my website to it. This way, those who connect will not have to know the ip address of the server, they will just have to know the name.

For example, let's say I want "game.magicked.com" to direct the users to the game server which is running on a different port than port 80 (of course).

Is there a way to redirect with php or something, or do I have to set up a whole new DNS entry and wait for it to propagate?

Thanks.

Skunkboy
9-9-04, 01:03 AM
game.magicked.com

If you do it this way, your best way is...
in root (same level as cgi-bin & htdocs)

create: game
inside game create: htdocs
in htdocs create: index.html

For your index.html use a meta refresh with a delay of 0 (zero). Then, when you fire up your computer, if your IP is different, jump to that file and change the address it forwards to.

sample: <META HTTP-EQUIV=Refresh CONTENT="0; URL=http://120.0.0.1:80">

I've done this for serving a webcam to my site before.