[CentralOH] (no subject)

John Santiago jdsantiagojr at gmail.com
Wed Feb 13 16:59:52 CET 2013


Thank you. I ended up tweaking the apache config. I created a virtual host,
and is working well. I may get rid of flask all together and use CherryPy.
I will git the source soon. Really would like some critique.


On Wed, Feb 13, 2013 at 9:52 AM, Eric Floehr <eric at intellovations.com>wrote:

> I think if you set subdomain to None in the decorator, that would work,
> but I only briefly have played with Flask so I'm not the best person to
> answer this definitively.
>
> Maybe if you shared your code that you are having a problem with, the list
> could help... or if you've figured it out, share the solution so the list
> can learn from you.
>
> Cheers,
> Eric
>
>
>
> On Wed, Feb 6, 2013 at 6:10 PM, <jdsantiagojr at gmail.com> wrote:
>
>> I think I have. I am using <VirtualHost *port>. I tried using decorator
>> like you mentioned, but it required me to provide a defuault domain
>> like ‘www’.
>>
>> Sent from Windows Mail
>>
>>  *From:* Eric Floehr
>> *Sent:* February 5, 2013 9:11 PM
>>
>> *To:* Mailing list for Central Ohio Python User Group (COhPy)
>> *Subject:* Re: [CentralOH] (no subject)
>>
>> John,
>>
>> Have you figured this out yet?  If not, are you using Virtual hosts in
>> your web server or CherryPy's VirtualHost dispatch? In Flask, you can
>> specify the subdomain in your @app.route decorator. Or am I not
>> understanding your problem? If not, could you provide a little more detail
>> on what you are trying to accomplish?
>>
>> Cheers,
>> Eric
>>
>>
>>
>> On Sat, Feb 2, 2013 at 3:23 PM, <jdsantiagojr at gmail.com> wrote:
>>
>>> Hello everyone,
>>>
>>> I have a question about deploying multiple applications under one apache
>>> instance using CherryPy and Flask. My domain is sniplogic.com and my
>>> subdomain is api.sniplogic.com. Both point to the same application
>>> folder and trying to figure out how to set up cherrypy to detect that, and
>>> route to correct path.
>>>
>>> Right now I am using Virtual host, which is working, but I feel like I
>>> there is a better way. Especially if I want to mount more applications. Any
>>> help would be greatly appreciated.
>>>
>>> Thank You,
>>> John Santiago
>>>
>>>
>>> _______________________________________________
>>> CentralOH mailing list
>>> CentralOH at python.org
>>> http://mail.python.org/mailman/listinfo/centraloh
>>>
>>>
>>
>> _______________________________________________
>> CentralOH mailing list
>> CentralOH at python.org
>> http://mail.python.org/mailman/listinfo/centraloh
>>
>>
>
> _______________________________________________
> CentralOH mailing list
> CentralOH at python.org
> http://mail.python.org/mailman/listinfo/centraloh
>
>


-- 
This electronic message is intended to be for the use only of the named
recipient, and may contain information that is confidential or privileged.
If you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution or use of the contents of this message is
strictly prohibited.  If you have received this message in error or are not
the named recipient, please notify us immediately by contacting the sender
at the electronic mail address noted above, and delete and destroy all
copies of this message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/centraloh/attachments/20130213/6ab46be4/attachment.html>


More information about the CentralOH mailing list