Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to add a domain with quixote as its backend. I searched google and found that there are servaral choices to glue quixote and apache together. I chose scgi because it seems like the choice with the best performace.

So, I installed mod_python and scgi_apache, but got stuck with the config. I found a tutorial with google that said the usual scgi configuration for apache is:

SCGIMount / 127.0.0.1:3000

which only redirects some requests with the url posfix with the root "/" to the quixote request handler, so when I tried to redirect some domain requests to it:

SCGIMount www.mydomain.com 127.0.0.1:3000

it didn't work and just directed to the page of my default host.

Does anyone have a solution or advice on this? Any help is greatly appreciated.

By the way, anyone with reputation over 1500 please add "quixote" as a tag.

share|improve this question

migrated from stackoverflow.com Sep 26 '11 at 13:05

This question came from our site for professional and enthusiast programmers.

1 Answer 1

after study, I finally figured out how to make certain host to support quixote while keep other hosts out. Actually, we can add the

SCGIMount / 127.0.0.1:3000

into some virtual hsot configuration file in the httpd-vhost.conf file. e.g., here is my configuration:

   <VirtualHost *:80>
   ServerAdmin david@itbeing.com
   DocumentRoot "/Users/itbeing/Projects/www/itbeing.com"
   ServerName www.itbeing.com
   ErrorLog "/private/var/log/apache2/dummy-host2.example.com-error_log"
   CustomLog "/private/var/log/apache2/dummy-host2.example.com-access_log" com$
   #setup a location to be servered by an SCGI server process.
   SCGIMount /  127.0.0.1:3000
   </VirtualHost>

That is it. Hopefully this would help to else who have the same similar question.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.