On Oct 30, 4:54 am, morellik <[email protected]> wrote:
> Thanks to all for your suggestions and comments.
> So, I'll use  Apache to proxy requests to pylons.
>
> At this point I have another question. I'm reading the Pylons Book and
> in the chapter that explain it, there is an apache configuration
> example:
>
> <VirtualHost *>
>     ServerNamewww.pylonsbook.com
>     ServerAlias pylonsbook.com
>
>     # Logfiles
>     ErrorLog  /home/simplesite/log/error.log
>     CustomLog /home/simplesite/log/access.log combined
>
>     # Proxy
>     ProxyPass /http://localhost:8080/retry=5
>     ProxyPassReverse /http://localhost:8080/
>     ProxyPreserveHost On
>     <Proxy *>
>         Order deny,allow
>         Allow from all
>     </Proxy>
> </VirtualHost>
>
> 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:5001has to be 
> redirect to my pylons
> application. I cannot understand how do that. Because from the example
> seems that all request towww.pylonsbook.comare redirect 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.

I was going to say that I don't think that's possible, but perhaps you
can add 'Listen 5001' to your Apache config and set up a virtualhost
using that port (don't know; never tried it). Of course, if that did
work, you'd have to run your Paste server on a different 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to