Help with VirtualHost file

****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:

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

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 tags or something. Would I be able to do what I'm wanting to do via 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. =/****

14 Replies

gamestats2.gs.nintendowifi.net resolves to 67.215.65.132 not 173.230.130.127

Ah, yes. Sorry about that, erroneous copy/paste of mine. The ServerAlias is www.globaltradestation.net.

@vonskippy:

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?

@hoopycat:

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

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.

Oh wait, I read your question wrong. I don't think I'm trying to run a CGI file.

@Zowayixx:

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

@otherbbs:

@Zowayixx:

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/publichtml/publichtml. 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.****

I fixed the globaltradestation.net redirect problem, but still no advance in the VirtualHost file. Any more help? :?

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.

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?

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct