Also, to answer to your questions:

You said:
> I see that in your set up perhaps one may approach the different apps
using example.com/books or example.com/blog, is that right?

Yes, /books and /blog are completely separate applications. different
database, different files, and _each_ has its own:
application = web.application(urls, globals()).wsgifunc()

You said:
> I don't want the second app to render on port 80 and these are 2 very
distinct web py apps and have nothing to do with each other.
> So, would you recommend I use a different Domain name for the second
application?

It seems that you can do what you want with just one domain name, but a
different one, or a subdomain (separate VirtualHost, port 80), would
simplify the situation.


On Wed, Jan 30, 2013 at 11:46 AM, Megha Vishwanath <
[email protected]> wrote:

> Hey,
>
> I see that in your set up perhaps one may approach the different apps
> using example.com/books or example.com/blog, is that right?
>
> I don't want the second app to render on port 80 and these are 2 very
> distinct web py apps and have nothing to do with each other.
> So, would you recommend I use a different Domain name for the second
> application?
>
> -Megha
>
> On Wed, Jan 30, 2013 at 12:13 PM, Marios Zindilis <[email protected]>wrote:
>
>> Maybe the problem is that you have two VirtualHost definitions for the
>> same domain. I have posted my current working VirtualHost configuration
>> here:
>>
>> https://gist.github.com/4671242
>>
>> The only difference to the configuration in production is that the domain
>> is not actually example.com, and the IP from which the test applications
>> are accessible is that of our proxy server.
>>
>> Let me know if further explanations are necessary.
>>
>>
>>
>>
>> On Tue, Jan 29, 2013 at 4:13 PM, Megha Vishwanath <
>> [email protected]> wrote:
>>
>>> This:
>>>
>>> *For App 1*
>>> <VirtualHost *:80>
>>>     ServerName www.domain.com
>>>
>>>     RewriteEngine On
>>>     RewriteCond %{THE_REQUEST} /schoolpage/
>>>     RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=301,L]
>>>
>>>     CustomLog /srv/domwww/logs/access.log common
>>>     ErrorLog /srv/domwww/logs/error.log
>>>
>>>     Alias /css /srv/domwww/css
>>>     Alias /images /srv/domwww/images
>>>     Alias /reports /srv/reports
>>>     Alias /rawdata /srv/rawdata
>>>     Alias /uploaded_images /srv/uploaded_images
>>>     Alias /js /srv/domwww/js
>>>     Alias /yui /srv/domwww/yui
>>>     Alias /flot /srv/domwww/flot
>>>     Alias /sslc /srv/domwww/sslc
>>>     Alias /robots.txt /srv/domwww/robots.txt
>>>
>>>     <Directory /srv/domwww/>
>>>     WSGIApplicationGroup %{GLOBAL}
>>>     AddHandler wsgi-script .wsgi
>>>     allow from all
>>>    </Directory>
>>> </VirtualHost>
>>>
>>> *For App 2*
>>> <VirtualHost *:8005>
>>>     ServerName www.domain.com
>>>
>>>     LogLevel debug
>>>
>>>     CustomLog /srv/domMisc/modinterface/logs/access.log common
>>>     ErrorLog /srv/domMisc/modinterface/logs/error.log
>>>
>>>
>>>     Alias /css /srv/domMisc/modinterface/css
>>>     Alias /js /srv/domMisc/modinterface/js
>>>     Alias /images /srv/domMisc/modinterface/images
>>>     Alias /templates /srv/domMisc/modinterface/templates
>>>     Alias /favicon.ico /srv/domMisc/modinterface/favicon.ico
>>>     Alias / /srv/domMisc/modinterface/modinterface.wsgi
>>>
>>>     <Directory /srv/domMisc/modinterface>
>>>         AddHandler wsgi-script .wsgi
>>>         WSGIApplicationGroup %{GLOBAL}
>>>         Allow from all
>>>     </Directory>
>>> </VirtualHost>
>>>
>>> Regards,
>>> Megha
>>> neoWarli.com | 
>>> dreamSchoolForum.blogspot.com<http://dreamschoolforum.blogspot.com> |
>>> www.klp.org.in
>>>
>>>
>>>
>>> On Tue, Jan 29, 2013 at 5:04 PM, Jason Macgowan <[email protected]
>>> > wrote:
>>>
>>>> Can you post your apache config files?
>>>>
>>>>
>>>> On Tue, Jan 29, 2013 at 6:31 AM, Megha Vishwanath <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi Mario,
>>>>>
>>>>> Sorry, we're only trying this now, after very long.
>>>>>
>>>>> And changes suggested here didn't work for us. Do we need to make
>>>>> changes in the wsgi file as well?
>>>>>
>>>>> Yes, they run under the same domain. If we resolve this, will it still
>>>>> be a problem then?
>>>>>
>>>>> -Megha
>>>>>
>>>>>
>>>>> On Fri, Sep 21, 2012 at 12:26 PM, Marios Zindilis <[email protected]
>>>>> > wrote:
>>>>>
>>>>>> Are the two applications running under the same domain? There are
>>>>>> some complications in WSGI function if they are.
>>>>>>
>>>>>> I managed to run multiple web.py apps, described in this previous
>>>>>> list message:
>>>>>>
>>>>>> https://groups.google.com/**forum/#!topic/webpy/CKC5EeXlk_**I<https://groups.google.com/forum/#%21topic/webpy/CKC5EeXlk_I>
>>>>>>
>>>>>>   --
>>> You received this message because you are subscribed to the Google
>>> Groups "web.py" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at http://groups.google.com/group/webpy?hl=en.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>>
>> --
>> Marios Zindilis
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "web.py" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/webpy?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/webpy?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Marios Zindilis

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to