My develop environment is windows+mod_wsgi 3.3+python 2.7+apache 2.2.

I have set up apache to listen to 8080 port and use default settings
for other apache configuration, meaning there is no VirtualHost/
ServerName/ServerAlias...

Here is the settings for wsgi:
WSGIScriptReloading Off
WSGIScriptAlias / "E:/eclipse workspace/SubscriptionServer/src/
business/dispatcher.py"
WSGIPythonPath "E:/eclipse workspace/SubscriptionServer/src"

<Directory "E:/eclipse workspace/SubscriptionServer">
    Order deny,allow
    Allow from all
</Directory>

Now I have met the problem that apache will create interpreters for
each port accessed by users, as apache logs show below.
[error.log]
    [Sat Dec 24 22:14:34 2011] [info] mod_wsgi (pid=4956): Create
interpreter 'myhost.com:8080|'.
    [Sat Dec 24 22:14:34 2011] [info] mod_wsgi (pid=4956): Adding 'E:/
eclipse workspace/SubscriptionServer/src' to path.
    [Sat Dec 24 22:14:34 2011] [info] [client 10.27.7.110] mod_wsgi
(pid=4956, process='', application='myhost.com:8080|'): Loading WSGI
script 'E:/eclipse workspace/SubscriptionServer/src/business/
dispatcher.py'.
    [Sat Dec 24 23:38:41 2011] [info] mod_wsgi (pid=4956): Create
interpreter 'myhost.com|'.
    [Sat Dec 24 23:38:41 2011] [info] mod_wsgi (pid=4956): Adding 'E:/
eclipse workspace/SubscriptionServer/src' to path.
    [Sat Dec 24 23:38:41 2011] [info] [client 110.7.115.125] mod_wsgi
(pid=4956, process='', application='myhost.com|'): Loading WSGI script
'E:/eclipse workspace/SubscriptionServer/src/business/dispatcher.py'.
    [Sun Dec 25 09:04:50 2011] [info] mod_wsgi (pid=4956): Create
interpreter 'myhost.com:25|'.
    [Sun Dec 25 09:04:50 2011] [info] mod_wsgi (pid=4956): Adding 'E:/
eclipse workspace/SubscriptionServer/src' to path.
    [Sun Dec 25 09:04:50 2011] [info] [client 118.161.243.186]
mod_wsgi (pid=4956, process='', application='myhost.com:25|'): Loading
WSGI script 'E:/eclipse workspace/SubscriptionServer/src/business/
dispatcher.py'.

[access.log]
    110.7.115.125 - - [24/Dec/2011:23:38:41 +0800] "GET http://gs.163.com/
HTTP/1.1" 404 29
    118.161.243.186 - - [25/Dec/2011:09:04:50 +0800] "CONNECT
mail3.xps.idv.tw:25 HTTP/1.0" 404 29

As you can see from access log, these two requests will cause apache
to create 80 and 25 interpreters. I don't know where they come
from(proxy detecting?). But I can simulate them through telnet.
    telnet myhost.com 8080
    GET http://gs.163.com/
    CONNECT mail3.xps.idv.tw:25

Then when I shut down the apache, no matter how many interpreters it
creates, it only destroys the 8080 interpreter. This is another odd
discovery.
    [Sun Dec 25 15:04:01 2011] [info] mod_wsgi (pid=4956): Destroying
interpreters.
    [Sun Dec 25 15:04:01 2011] [info] mod_wsgi (pid=4956): Destroy
interpreter 'myhost.com:8080|'.
    [Sun Dec 25 15:04:29 2011] [notice] Parent: Forcing termination of
child process 234
    [Sun Dec 25 15:04:29 2011] [info] removed PID file C:/Program
Files (x86)/Apache Software Foundation/Apache2.2/logs/httpd.pid
(pid=4608)

I only want apache to listen to 8080 and create 8080 interpreter and
prevent others. I believe there are some settings I have missed,
apache or firewall? But how can I do this?

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to