apache windows: one process

Problems with the Windows version of XAMPP, questions, comments, and anything related.

apache windows: one process

Postby k3ph » 09. September 2006 00:41

my xampp runs in 2 process, how to reduce to one?

note: I'm not using MPM module

thanks in advance
k3ph
 
Posts: 2
Joined: 09. September 2006 00:34

Re: apache windows: one process

Postby Izzy » 09. September 2006 11:34

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. :)
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Postby k3ph » 09. September 2006 21:19

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)
k3ph
 
Posts: 2
Joined: 09. September 2006 00:34


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests