Okay, your problem makes sense to me, but I'm not sure of a good fix for it. You've described the problem well: Your environment must go through a proxy, and the proxy uses its own localhost. You really don't have many options, here.
1. You can find a way to get localhost added to an exclude list for the proxy. 2. You can edit your development.ini and put your machine's real IP address in as the host. That would allow you to use http://real.ip.address:8080/ in your browser, and get it to work. 3. Get a different environment to code in. Having to go through a proxy to view files on localhost will make development very difficult. On Sat, Oct 13, 2012 at 9:58 PM, cht8 <uminokaze...@gmail.com> wrote: > All those works fine. I can get the main page through telnet. > > The problem is, I am building this demo site for a school project. > We have a gateway computer that we need to connect to and then remote > connect to our virtual machine. > > The tg2 site is running on the VM. When we ask for the localhost:8080 the > gateway machine will forward the request to the VM. The VM is ubuntu server > so I can't get a browser to work. > > Somehow I can telnet and get a main page response but when I access through > the gateway machine using a browser it's doesn't work. > > > On Thursday, October 11, 2012 3:28:58 PM UTC-7, Craig Small wrote: >> >> On Wed, Oct 10, 2012 at 11:02:52PM -0700, cht8 wrote: >> > I'm new to turbogears 2. I've follow the example guide on >> > turbogears.org. When I run the command "sudo paster serve >> > development.ini" >> > it gives me no error and "serving on http://127.0.0.1:8080" but I >> > can't >> > see the page on http://localhost:8080. >> Check that you got something listening to that port first. >> $ fuser -n tcp 8080 >> 8080/tcp: 3259 >> >> What is it that is listening to port 8080? Check use the PID found in >> the above command. h flag suppresses header, w prints wide. >> $ ps hw 3259 >> 3259 pts/3 Sl+ 0:02 /home/virtualenv/tg2env/bin/python >> /home/virtualenv/tg2env/bin/paster serve development.ini >> >> try telnet to 127.0.0.1 not the name first. If you get a connection type >> "GET /" without the quotes. >> >> Also, if you have a firewall check you're not blocking local >> connections. >> >> Oh another thing, and I've done this before. The browser has to be >> running on the computer that paster is running. I've ssh'ed from my >> laptop to my server to run paster and wondered why the laptops browser >> doesn't work. All terminals look the same! >> >> - Craig >> >> -- >> Craig Small VK2XLZ http://enc.com.au/ csmall at : enc.com.au >> Debian GNU/Linux http://www.debian.org/ csmall at : debian.org >> GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5 > > -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/turbogears/-/Xprg4mFm_v8J. > > To post to this group, send email to turbogears@googlegroups.com. > To unsubscribe from this group, send email to > turbogears+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/turbogears?hl=en. -- Michael J. Pedersen My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen Google Talk: m.peder...@icelus.org -- Twitter: pedersentg -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to turbogears@googlegroups.com. To unsubscribe from this group, send email to turbogears+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.