On 19 June 2010 08:44, Lukasz Szybalski <[email protected]> wrote: > Hello, > > So I guess my questions boils down to: > > How can I have multiple virtual hosts settings for the same domain?
Seems not. You would just need to be creative with your includes of snippets. Perhaps putting the snippets in a separate directory and then including each into each VirtualHost file as appropriate. Graham > I cannot get this to work, either they same domain needs to be in the > same file, or you cannot overwrite or add to virtualhost like you > would if you are serving files without virtualhost. > > > ##File 001-mydomain with /mywiki > > > NameVirtualHost *:80 > > <VirtualHost *:80> > ServerName www.domain.tld > ServerAlias domain.tld *.domain.tld > > WSGIScriptAlias /mywiki /etc/moin/apache/moin.wsgi > .... > </VirtualHost> > > ##Then 002-mydomain that handles everything else except for 1. > > <VirtualHost *:80> > ServerName www.domain.tld > ServerAlias domain.tld *.domain.tld > > WSGIScriptAlias / /etc/myapp/apache/myapp.wsgi > DocumentRoot /var/www/lucasmanual/ > ..... > </VirtualHost> > > ##Then 003-my second domain? > > <VirtualHost *:80> > ServerName www.mynewdomain.tld > ServerAlias mynewdomain.tld *.mynewdomain.tld > > WSGIScriptAlias / /etcmynewapp/apache/mynewapp.wsgi > > </VirtualHost> > > > Am I missing something here? > > Thanks, > Lucas > > -- > 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. > > -- 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.
