Pyramid will generate URLs based on the WSGI environment, including the HTTP Host header.
If you are using a decent server, you should not have to configure anything. If you are using a reverse proxy, you may have to configure it to pass the Host header you want. Tell us more about your deployment. On Sun, Dec 28, 2014, 12:11 Maxime Bellier <[email protected]> wrote: > Hi ! > > After searching for hours, I decide to contact you all to understand how > to generate the URL of my Pyramid site. > > Indeed, all my route ( / ; /view ; /edit ) generates URL like : > 192.168.XXX.XXX/view etc... > > How I configure thoses URL to be like http://www.example.com/view ? > > Cause my site is working on a local network but accessing it from the net > outside of this network make 404 errors. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" 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/pylons-discuss. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
