Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Sep 23, 2010 6:17 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
I don't know if you'd be able to help with this matter, due to the specificity of it, but I'm hoping you can. A domain registered on my server (globaltradestation.net) has a file on it that, when activated, is supposed to send information to a specific URL (gamestats2.gs.nintendowifi.net), then receive a response from it (the file is a .py, or a Python, file). This is what my globaltradestation.net file looks like in /etc/apache2/sites-available:


<VirtualHost 173.230.130.127:80>
ServerAdmin zowayixx@halloforigin.com
ServerName globaltradestation.net
ServerAlias www.globaltradestation.net
DocumentRoot /srv/www/globaltradestation.net/public_html/
ErrorLog /srv/www/globaltradestation.net/logs/error.log
CustomLog /srv/www/globaltradestation.net/logs/access.log combined
</VirtualHost>


I've done this once before, but due to an image redeployment, I lost the globaltradestation.net file that was correct. I believe it was done with <Directory> tags or something. Would I be able to do what I'm wanting to do via <Directory> tags? Sorry for the trouble, I've just been wanting to get this feature back up for months, but haven't figured out how to. =/


Last edited by Zowayixx on Thu Sep 23, 2010 8:02 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Thu Sep 23, 2010 6:34 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
gamestats2.gs.nintendowifi.net resolves to 67.215.65.132 not 173.230.130.127


Top
   
 Post subject:
PostPosted: Thu Sep 23, 2010 8:02 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
Ah, yes. Sorry about that, erroneous copy/paste of mine. The ServerAlias is www.globaltradestation.net.


Top
   
 Post subject:
PostPosted: Thu Sep 23, 2010 8:14 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
vonskippy wrote:
gamestats2.gs.nintendowifi.net resolves to 67.215.65.132 not 173.230.130.127


AH-HA! I *knew* we'd eventually catch you using OpenDNS!


As for the original problem, I'm not 100% sure I know what the problem is. Are you wanting to run the .py file as a CGI script?

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Thu Sep 23, 2010 8:25 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
hoopycat wrote:
AH-HA! I *knew* we'd eventually catch you using OpenDNS!

That will teach me to visit the forum while I'm at work - lol


Top
   
 Post subject:
PostPosted: Thu Sep 23, 2010 11:34 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
Ah, sorry for the late reply. But as far as I know, I'm running it as a regular python file, with the command "python file.py" in my Ubuntu 10.04 SSH terminal.


Top
   
 Post subject:
PostPosted: Sun Sep 26, 2010 10:25 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
Oh wait, I read your question wrong. I don't think I'm trying to run a CGI file.


Top
   
 Post subject:
PostPosted: Sat Oct 02, 2010 1:17 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
Anyone? :(


Top
   
 Post subject:
PostPosted: Sun Oct 03, 2010 6:42 pm 
Offline
Senior Member

Joined: Sun Oct 30, 2005 7:52 pm
Posts: 97
Zowayixx wrote:
Anyone? :(

How does the python file get execute? If via your web server, then file permission and the like are most likely where you need to check.

BTW, http://globaltradestation.net redirects to http://www.globaltradestation.net/public_html/ which redirects to "../"
Would make more sense to just redirect from http://globaltradestation.net to http://www.globaltradestation.net

--
Travis


Top
   
 Post subject:
PostPosted: Tue Oct 05, 2010 4:28 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
otherbbs wrote:
Zowayixx wrote:
Anyone? :(

How does the python file get execute? If via your web server, then file permission and the like are most likely where you need to check.

BTW, http://globaltradestation.net redirects to http://www.globaltradestation.net/public_html/ which redirects to "../"
Would make more sense to just redirect from http://globaltradestation.net to http://www.globaltradestation.net

--
Travis



I'm executing it via the SSH panel. I believe all of the permissions are correct, I just can't remember the VirtualHost Directory attribute(s). :?

Also, I'll fix that now. I forgot I put a globaltradestation.net/public_html/public_html. I'll fix that now.


EDIT: Wait, when I type in http://globaltradestation.net, it brings me to http://www.globaltradestation.net/public_html, while on my other site typing in http://halloforigin.com redirects to http://www.halloforigin.com. What's the deal with that? They have the same .htaccess contents, with the URLs changed of course.


Top
   
 Post subject:
PostPosted: Fri Dec 17, 2010 9:47 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
I fixed the globaltradestation.net redirect problem, but still no advance in the VirtualHost file. Any more help? :?


Top
   
 Post subject:
PostPosted: Sun Jan 30, 2011 4:47 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
Alright, so after about a month of tinkering with it, I've still come up empty-handed. Any further help would be much, much appreciated.


Top
   
 Post subject:
PostPosted: Mon Jan 31, 2011 1:10 am 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
So, to simplify things, you have a script running on your site that reaches out and touches another server not under your control, then the script on your server waits for that foreign server to send a response?


Top
   
 Post subject:
PostPosted: Tue Feb 08, 2011 4:10 pm 
Offline
Junior Member

Joined: Mon Apr 26, 2010 12:20 am
Posts: 22
Website: http://www.halloforigin.com
Yes, that's the idea.


Top
   
 Post subject:
PostPosted: Tue Feb 08, 2011 4:18 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
I don't see how there is anything wrong, let along anything needed to be done in your vhost config to make something like that work then.

First I'd make sure that your script is actually able to contact the 3rd party server.

Then I'd be watching your access logs to make sure that the request you're waiting for is actually hitting your server.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group