List Info

Thread: mod_rewrite, mod_proxy, and subdomains




mod_rewrite, mod_proxy, and subdomains
user name
2006-11-09 01:03:01
Hello all,

After much research and consternation, I've managed to get
my
TurboGears/CherryPy 2.2 setup going behind Apache 2.0. 
However, it
only works if I navigate using an url of the form:

http://trendi.com

serves cherrypy (proxies port 8080) just like I want, but

http://www.trendi.com

still points to the "traditional" DocumentRoot
file (in my case,
/var/www/vhosts/trendi.com/httpdocs) and doesn't get
proxy-served to
port 8080.

I know there's something simple I'm overlooking somewhere to
get the
"www" form to resolve...  I've tried to comment
out all .htaccess and
virtual host include files, so that only httpd.conf is used
for config,
but I've evidently missed something somewhere.  The relevant
sections
of httpd.conf:

ProxyRequests Off

<Proxy *>
    Order deny,allow
    Deny from all
    Allow from .trendi.com
</Proxy>

ProxyPass / http://www.trendi.com:808
0/
ProxyPassReverse / http://www.trendi.com:808
0/
<Location / >
        Order allow,deny
        Allow from all
</Location>


..later...


RewriteEngine On
RewriteRule ^/static/(.*)
/var/www/vhosts/trendi.com/subdomains/dev/trendi/trendi/stat
ic/$1 [L]
RewriteRule ^(.*) http://www.trendi.com:808
0/$1 [P]

Thanks in advance!

-David


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

mod_rewrite, mod_proxy, and subdomains
user name
2006-11-09 01:25:08

On 11/8/06, David Golightly < davigoligmail.com">davigoligmail.com> wrote:

Hello all,

After much research and consternation, I've managed to get my
TurboGears/CherryPy 2.2 setup going behind Apache 2.0.  However, it
only works if I navigate using an url of the form:

http://trendi.com

serves cherrypy (proxies port 8080) just like I want, but

http://www.trendi.com
still points to the "traditional&quot; DocumentRoot file (in my case,
/var/www/vhosts/trendi.com/httpdocs) and doesn't get proxy-served to
port 8080.


Nice looking site. ; Both urls work for me.  Did you get it fixed in the meantime?

Christian
http://www.dowski.com



--~--~---------~--~----~------------~-------~--~----~
&nbsp;You received this message because you are subscribed to the Google Groups "cherrypy-users&quot; group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---

mod_rewrite, mod_proxy, and subdomains
user name
2006-11-09 01:35:53
Nevermind!  It was all my browser cache.  D'oh!

Thanks everyone.  For the record, what kept tripping me up
when I tried
following the instructions at http://www.
cherrypy.org/wiki/BehindApache
was failing to set up the mod_proxy directives.  Hope this
helps
someone else in the future!

David


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )