> On Oct 30, 4:54 am, morellik <[email protected]> wrote: > > Now, the apache web server that I'll use, serve a principal domain > > (www.cerm.unifi.it) and other virtual host based on its names. > > I would that all coming requests > > forhttps://www.cerm.unifi.it:5001orhttp://www.cerm.unifi.it:5001hasto be > > redirect to my pylons > > application. I cannot understand how do that. Because from the example > > seems that all request towww.pylonsbook.comareredirect to the port > > 8080 where the paster is listen. Instead I want the only the requests > > to the 5001 port of the base site are to be redirected.
Most people wouldn't do that. It's an odd setup. Typically people do this : - Front-End server on port 80 - All "upper level" ports locked down to localhost only - Front-end server proxies certain traffic on port 80 -- based on virtual host settings, location match, etc , to Paster or other application running on port 5000, 8080, etc to get your behavior - which is odd - you can do two things : - run paster on port 5001 , and open up that port on iptables or whatever ; paster will respond to those requests and there's no need to run them through apache. apache will only bind to the ports you request, which by default is 80. unless you tell it to listen to 5001, it's not going to -- and paster can run on that and handle traffic directly. - in apache put: -- Listen 5001 -- <VirtualHost domainname.it:5001> proxy to pylons on 8080 </ VirtualHost> personally, I'd keep all the external traffic on port 80. it's simpler , cleaner urls, and you won't have do deal with the potential of firewalls of your consumers's employers/isps blocking the higher ports. i'd just set up a virtual host, and proxy everything but static content or specific directories to the paster server on the higher port. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
