Page 1 of 1

apache windows: one process

PostPosted: 09. September 2006 00:41
by k3ph
my xampp runs in 2 process, how to reduce to one?

note: I'm not using MPM module

thanks in advance

Re: apache windows: one process

PostPosted: 09. September 2006 11:34
by Izzy
k3ph wrote:my xampp runs in 2 process, how to reduce to one?

note: I'm not using MPM module

thanks in advance

This from the Apache web site:
http://httpd.apache.org/docs/2.2/platfo ... .html#cust
...Because Apache for Windows is multithreaded, it does not use a separate process for each request, as Apache does with Unix. Instead there are usually only two Apache processes running: a parent process, and a child which handles the requests. Within the child each request is handled by a separate thread...


With regard to the question you edited out ;) re only having an ssl only server (not sure wether or not this would apply to XAMPP's Windows implementaion of Apache):
http://httpd.apache.org/docs/2.2/ssl/ssl_howto.html

http://httpd.apache.org/docs/2.2/ssl/

This can also be achieved by using a mod_rewrite rule to send all request for http to https on a domain by domain basis.

You can search for a rule using Google which might come up with an already made up rule, or failing that, you can research mod_rewrite and the rewriteengine. A good place to start might be here:
http://httpd.apache.org/docs/2.2/rewrite/

http://httpd.apache.org/docs/2.2/ssl/

http://httpd.apache.org/docs/2.2/

http://www.google.com/search?q=rewrite_module

Or you can use the Virtual Host Directive for a domain using
xampp/apache/conf/extra/httpd-ssl.conf
as an example implementation to work with inside a Virtual Host container.

Most of the details with regard to directives including the virtualhost directive can be found here:
http://httpd.apache.org/docs/2.2/mod/core.html

If you come up with an ssl solution after doing some research and you feel it might benefit other Forum Members then please feel free to post a nice "how-to..." - thanks in advance. :)

PostPosted: 09. September 2006 21:19
by k3ph
thanks for the thread/child explanation ;) I was looking for that!

well, I figured out how to use modrewrite:
Code: Select all
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]


Also ssl-only users can disable listen 80 (dirrrty trick lmao)