On Jun 15, 8:11 pm, Graham Dumpleton <[email protected]> wrote: > 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. >
That is the case. It is much easier to separate files into its own configuration 001-mywiki 002-myapp1 003-myapp2 004-mymainsite default (not sure if this is read first or last) And then enable and disable apps using the "a2ensite or a2disssite" "a2dissite 003-myapp2" for example. Much easier then commenting and uncommenting apache configuration in one big file. This works perfect with one site, but now that I will be hosting a separate domain, I need to somehow change these into its own domain?! Is there a way to modify this or put it in 001 or 005 configuration so that this virtual hosts grabs everything for example3.com, while all the other configuration files are read in the order they are now? If example3.com then use configuration 005-example3.com? If everything else then follow the way I'm loading apache configs now?!! Thanks, Lucas <VirtualHost *:80> > > ServerAdmin [email protected] > > ServerName example3.com > > ServerAlias example3.com Thanks, Lucas > 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 domainhttp://example3.comwhich 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 > > athttp://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.
