Custom httpd.conf configuration only for port 80 or port 443

rvandam

Verified User
Joined
Aug 28, 2009
Messages
39
I am trying to insert some custom configuration for mod_wsgi into httpd.conf. The problem I have is that the custom rules are inserted for both port 443 and for port 80. This leads to an error (duplicate entry).

How do I make an admin entry that wil only be inserted in the virtualhost :80 (or :443) part?

I want to use this configuration:
WSGIDaemonProcess jouwsta user=mysite group=mysite threads=25
WSGIProcessGroup mysite
WSGIScriptAlias / /home/mysite/mysite/mysite/wsgi.py
 
Thank you for your reply!

Sounds this is exactly what I need. Could you provide me an example how to use this?

This is what I tried and didn't work (entry doens't show up at all)

|*if SSL_TEMPLATE="0"|
|?WSGIDaemonProcess mysite user=mysite group=mysite threads=25|
|*endif|

If I change DOCROOT like |?DOCROOT=/new/path/you/want| it works.
 
Last edited:
That should be at least like the following:

Code:
|*if SSL_TEMPLATE="0"|
        WSGIDaemonProcess mysite user=mysite group=mysite threads=25
|*endif|
 
Looks like I was close :)

Thank you for your answer. It works perfectly now.
 
Back
Top