Arcade Script Problems


#1

Hi everyone I was recommended here to see if anyone may be able to help me. This is my problem,

Reply from DreamHost (May 5th, 2007 - 09:54:07 / #11495361)
Subject: Re: New Script
Hello,

[quote]Hi Im not sure if you can help me but Im gonna try anyway incase the
problem is with the server. I have recently installed a new script so
I can play arcade games from my site. When I try to click one of the
links to start the game it fails and returns me to address
http://127.0.0.1/ Im not sure if your servers are blocking this but as
far as I can tell everything is fine in the config files. I have
included my address were I have installed the script which is here:
http://www.skemp3s.com/Game150/index.php if you try any game you
will see what I mean. I have also included a link to a site hosting
the same script but it works :http://www.freecrosses.com/150game/ any
help is much appreciated I am just about to launch my pc through the
window lol.

[/quote]

Hmm, if it’s sending you to 127.0.0.1 then it sounds like the
configuration still needs a little tweaking. Unfortunately we really
can’t provide support for third party scripts like that though. You’re
more than welcome to ask around at http://discussion.dreamhost.com to see
if any of our users there have found a good solution to similar problems.
Our customers are usually pretty awesome so you’ll more than likely find
what you’re looking for there. I’m really sorry that I can’t provide
more assistance for you in this matter!

If there’s something else I can help you with, though, just let me know!

Thanks!
Craig

If anyone has any ideas please contact me, thanks guys.


#2

What’s interesting is that the fully qualified hostname instantly gets changed to the localhost IP address. It’s not “failing,” it’s just doing a quick redirect. Do you have any .htaccess files?

And you should also check your config files again for all hostname/IP address entries.

What software package is that? Without being able to poke around, it’s difficult to guess.

-Scott


#3

I think DH actually answered your question by saying a config file needs more tweaking.

I put the headers below, but here’s where things seem to go wrong:

Location: http://127.0.0.1/?act=play&id=35

I’d do a search through the files for 127.0.0.1 and look for a place where you probably need to enter your domain name.

If there aren’t any redirects in the .htaccess file, or you can’t find anything in config files, you could also check the source of /Game150/index.php itself and see if it’s coded right into a redirect there.

Headers:

#1 Server Response: http://www.skemp3s.com/Game150/index.php?act=play&id=35
HTTP Status Code: HTTP/1.1 302 Found
Date: Sat, 05 May 2007 21:18:07 GMT
Server: Apache/2.0.54 (Unix) PHP/4.4.4 mod_ssl/2.0.54 OpenSSL/0.9.7e mod_fastcgi/2.4.2 DAV/2 SVN/1.4.2
Location: http://127.0.0.1/?act=play&id=35
Vary: Accept-Encoding
Content-Length: 220
Connection: close
Content-Type: text/html; charset=iso-8859-1
Redirect Target: http://127.0.0.1/?act=play&id=35

#2 Server Response: http://127.0.0.1/?act=play&id=35
HTTP Status Code: HTTP/1.1 400 Bad Request
Content-Type: text/html
Date: Sat, 05 May 2007 21:18:09 GMT
Connection: close
Content-Length: 39


:stuck_out_tongue: Save up to $96 at Dreamhost with ALMOST97 promo code (I get $1).
Or save $97 with THEFULL97.


#4

Wow a massive thank you to you two guys! I really appriciate you taking the time to look into this for me. With your help I have managed to fix the problem. It was my .htaccess file. I use a script for my whole website called PHPnuke Evo and in the .htaccess file I was instructed on there website to insert this code:

RewriteEngine on
RewriteCond %{QUERY_STRING} ^act=(.)
//RewriteRule ^.
$ http://127.0.0.1/ [R,L]

About 3 weeks ago due to sites being hacked, once I removed it the Arcade script worked fine. Many many thanks guys. I really appreciate it.

Paul