I am confused. Are you saying that mywiki and myfirstsite definitions aren't actually inside of the VirtualHost but outside.
If this is the case then they will apply across all VirtualHost's and whether anything inside of a VirtualHost takes precedence will depend on order in which things are included by Apache. Can you clarify that point? Graham On 16 June 2010 05:54, Lukasz Szybalski <[email protected]> wrote: > Hello, > > I have a website that consists of "/" my tg2 app; "/mywiki" which is > moinmoin, , and its using standard virutalhost settings in apache. Now > I need to host a new domain http://example3.com which will hosts > different website. > > How should I configure that? > > The default file in debian apache2 has > > __default__ file > > <VirtualHost *:80> > ServerAdmin webmas...@localhost > ServerName lucasmanual.com > > DocumentRoot /var/www/xyz > <Directory /> > ....... > > __ 001-mywiki __ > > has: > Alias /wiki/ "/usr/share/moin/htdocs/" > ...... > WSGIScriptAlias /mywiki /etc/moin/apache/moin.wsgi > +<Directory> settings. > > __ 002-myfirstsite __ > has > WSGIScriptAlias / /usr/local/turbogears/lm/apache/lm.wsgi > +<Directory> settings. > > > This loads the 001, alias, then 002 alias. > > How should I change that so that the 001-mywiki and 002-myfirstsite are > working > and mythirdsite is pointing to its own virtualhost with its own aliases, etc? > > <VirtualHost *:80> > ServerAdmin [email protected] > ServerName example3.com > ServerAlias example3.com > > > ps. If I add my example3.com to 003-thirdsite then it does not get > read(it displays previous 2). If I add virtualhost setting in my > 002-myfirstsite then mywiki doesn't work, but my 003- is working, if I > make the 001-mywiki a virtualhost then my tg2 site (002-) doesn't > work, but my 003 site works? > > Any idea on proper way to use virtual host with multiple modwsgi alias > scripts, and multiple other aliases? > In my original website I have /doc /mywiki ...etc. > > 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.
