<div dir="ltr">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.<div><br></div><div>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.<div>

<br></div><div>Cheers,</div><div>Eric</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 6, 2013 at 6:10 PM,  <span dir="ltr"><<a href="mailto:jdsantiagojr@gmail.com" target="_blank">jdsantiagojr@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:16px">

<div>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’. </div><div><div> </div><div>Sent from Windows Mail</div><div>

 </div></div>       <div style="border-top-color:rgb(225,225,225);border-top-width:1px;border-top-style:solid">             <strong>From:</strong> Eric Floehr<br>                <strong>Sent:</strong> February 5, 2013 9:11 PM<br>           <strong>To:</strong> Mailing list for Central Ohio Python User Group (COhPy)<br>

                <strong>Subject:</strong> Re: [CentralOH] (no subject)<br>    </div><div><div class="h5"> <div> </div><div dir="ltr">John,<div><br></div><div>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?</div>



<div><br></div><div>Cheers,</div><div>Eric</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Feb 2, 2013 at 3:23 PM,  <span dir="ltr"><<a href="mailto:jdsantiagojr@gmail.com" target="_blank">jdsantiagojr@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div style="font-family:Calibri,"Segoe UI",Meiryo,"Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic","Khmer UI","Nirmala UI",Tunga,"Lao UI",Ebrima,sans-serif;font-size:16px">



<div>Hello everyone, </div><div> </div><div>I have a question about deploying multiple applications under one apache instance using CherryPy and Flask. My domain is <a href="http://sniplogic.com" target="_blank">sniplogic.com</a> and my subdomain is <a href="http://api.sniplogic.com" target="_blank">api.sniplogic.com</a>. 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. </div>



<div> </div><div>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. </div><div> </div><div>



Thank You, </div><div>John Santiago</div><div> </div></div></div><br>_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org" target="_blank">CentralOH@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/centraloh" target="_blank">http://mail.python.org/mailman/listinfo/centraloh</a><br>
<br></blockquote></div><br></div>
</div></div></div></div><br>_______________________________________________<br>
CentralOH mailing list<br>
<a href="mailto:CentralOH@python.org">CentralOH@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/centraloh" target="_blank">http://mail.python.org/mailman/listinfo/centraloh</a><br>
<br></blockquote></div><br></div>