felixlu / apjp

Automatically exported from code.google.com/p/apjp
0 stars 0 forks source link

how can i make gae server and other paas server work in different ports? #164

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
i have deploy a gae server and a cloudfoundry server and i want to make them 
work in different ports.

what i want is that gae listening on 10000 and cloudfoundry listening on 10001.

how should i config appp.ini to make it work? in this way i can change the 
proxy port to change the server.

@jeroen, could you tell me or improve appp to make it work?

Original issue reported on code.google.com by ablmdr...@gmail.com on 16 Mar 2013 at 6:45

GoogleCodeExporter commented 8 years ago
Yes, that is possible (configure APPP_PORT for each server).
You should also try APPP 0.1.3 (released 2013-03-10): 
http://fartersoft.com/appp/

Original comment by jeroen.v...@gmail.com on 16 Mar 2013 at 10:13

GoogleCodeExporter commented 8 years ago
I have downloaded APPP 0.1.3, but I found nowhere to configure APPP_PORT for 
each server.
Would you show me in detail?

Original comment by ablmdr...@gmail.com on 16 Mar 2013 at 12:57

GoogleCodeExporter commented 8 years ago
And I found something new in APPP 0.1.3, could you explain them as well?

[EXAMPLE-HTTPS]

[EXAMPLE-TRANSPARENT-HTTPS]

[EXAMPLE-IPV6]

[EXAMPLE-PROXY]

Original comment by ablmdr...@gmail.com on 16 Mar 2013 at 1:07

GoogleCodeExporter commented 8 years ago
[EXAMPLE-1]
APPP_PORT=10000

[EXAMPLE-2]
APPP_PORT=10001

The new examples in APPP 0.1.3 show how to configure APPP (for example: 
EXAMPLE-IPV6 shows how to configure APPP with a IPV6 address).
I have not tested all APPP 0.1.3 yet.

Original comment by jeroen.v...@gmail.com on 16 Mar 2013 at 2:19

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
what's the problem?
my configurations are

[cloudfoundry]
# These must be defined for each server
# Works as both http proxy and transparent http proxy.
HTTP_URL=https://xxx.cloudfoundry.com/HTTP
HTTPS_URL=https://xxx.cloudfoundry.com/HTTPS
APPP_PORT=10002

[gae]
HTTP_URL=https://xxx.appspot.com/HTTP
HTTPS_URL=https://xxx.appspot.com/HTTPS
APPP_PORT=10003

and the prints are

C:\Users\Administrator\Desktop\appp-0.1.3\win32>appp.exe -a
23:24:43 APPP[MainThread] INFO: Attempting to run all APPP servers defined in A
PP.ini
23:24:43 APPP[MainThread] INFO: Processing [cloudfoundry] configurations
23:24:55 APPP[MainThread] CRITICAL: Failed to process HTTP_URL (https://xxx.cl
udfoundry.com/HTTP): [Errno 11004] getaddrinfo failed
23:24:55 APPP[MainThread] INFO: Processing [gae] configurations
23:25:07 APPP[MainThread] CRITICAL: Failed to process HTTP_URL 
(https://xxx.appspot.com/HTTP): [Errno 11004] getaddrinfo failed
23:25:07 APPP[MainThread] CRITICAL: No runnable APPP server found! Exiting...

Original comment by ablmdr...@gmail.com on 16 Mar 2013 at 3:31

GoogleCodeExporter commented 8 years ago
I do not know, I have not written (and tested) APPP 0.1.3.
I have written a fork of APPP: http://code.google.com/p/apjp/downloads/list

Original comment by jeroen.v...@gmail.com on 16 Mar 2013 at 3:47

GoogleCodeExporter commented 8 years ago
i return to APPP-0.2.0.zip and delete the default configuration APPP_PORT=10000
in this way cloudfoundry works(the 1st server) and gae(the 2nd server) couldnot 
work
it seems that the 2nd server cannot be identified!
could you show me your configuration(the whole)?

Original comment by ablmdr...@gmail.com on 16 Mar 2013 at 3:53

GoogleCodeExporter commented 8 years ago
the prints 
global name ’proxy' is not defined

Original comment by ablmdr...@gmail.com on 16 Mar 2013 at 3:59

Attachments:

GoogleCodeExporter commented 8 years ago
i noted the last part of appp.ini and it works fine now!
thanks for your help again!

# These override DEFAULT settings
#HTTP_PROXY_ADDR=proxy.example.com
#HTTP_PROXY_PORT=3128
#HTTP_PROXY_USER=user
#HTTP_PROXY_PASS=pass
#APPP_PORT=10001

Original comment by ablmdr...@gmail.com on 17 Mar 2013 at 4:53