I'm using scalr.net to manage my application. We set up different subdomain
for different services (feed, sms, etc.) actually hosted on the same
instance. We did that so we can split these service in the future and don't
ask users to change their RSS urls, SMS urls, etc.
But now all subdomain point to the same instance. In scalr.net their is a
template from which all "application" (subdomain) herit. So for all
subdomains there is the same WSGI deamon definition. And when I launch
apache, I get the following error. Is there a way to be modwsgi and scalr
compatible in the same time. How do I manage subdomains with WSGI deamon
Syntax error on line 31 of /etc/apache2/sites-enabled/jocada.com.vhost.conf:
Name duplicates previous WSGI daemon definition.
...fail!
All subdomain are using the same *.conf actually and scalr create a separate
configuration file for each of them. Here is one of them. I'm using mod_wsgi
2.3 on ubunutu 8.04.
WSGIImportScript /home/mixint/webapps/django/mixin/_lib/deploy/mixin.wsgi
process-group=mixint application-group=mixint
NameVirtualHost *
<VirtualHost *:80>
ServerAlias www.jocada.com jocada.com
ServerAdmin [email protected]
DocumentRoot /var/www
ServerName www.jocada.com
<Directory /var/www>
Order allow,deny
Options Indexes
Allow from all
IndexOptions FancyIndexing
</Directory>
ErrorLog /var/log/apache2/error.log
LogLevel info
CustomLog /var/log/http-jocada.com-access.log combined
ServerSignature On
Alias /media/
/usr/lib/python2.5/site-packages/django/contrib/admin/media/
<Directory
/usr/lib/python2.5/site-packages/django/contrib/admin/media">
Order allow,deny
Options Indexes
Allow from all
IndexOptions FancyIndexing
</Directory>
SetEnv USER mixint
SetEnv DJANGO_SETTINGS_MODULE mixin.settings
WSGIDaemonProcess mixint user=mixint group=mixin
WSGIProcessGroup mixint
WSGIApplicationGroup mixint
WSGIScriptAlias /
/home/mixint/webapps/django/mixin/_lib/deploy/mixin.wsgi
<Directory /home/mixint/webapps/django/mixin/_lib/deploy>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---