List Info

Thread: CherryPy setup with Apache 2.2




CherryPy setup with Apache 2.2
country flaguser name
United States
2007-03-01 09:37:35
I am very new to CherryPy and Apache.  Your patience with my
ignorance
is appreciated.

I wrote a simple Hello World page in CherryPy.  I launched
it from the
command prompt.  Using the browser to view http://localhost:8080
works
fine.

Then, I tried to put the CherryPy app behind Apache.  I
inserted the
following lines in the httpd.conf file:

<Location />
    ProxyPass http://localhost:8080
    ProxyPassReverse http://localhost:8080
</Location>

Then, restarted Apache, cleared the browser cache.

http://localhost:8080
still works fine; however, http://localhost
results in 403-Forbidden.

I must be missing something elementary.  Any help pointing
me in the
right direction is appreciated.

Thanks in advance,
-mm


--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CherryPy setup with Apache 2.2
country flaguser name
United States
2007-03-02 10:25:19
I was able to get Apache working with CherryPy.  In case
other novices
have the same problem, my issue described previously was due
to the
Apache module mod_proxy_http.so being commented out in the
httpd.conf
file.  I had mod_proxy.so included, but not not
mod_proxy_http.so.


On Mar 1, 9:37 am, "MartinM" <m...mccasland.com> wrote:
> I am very new to CherryPy and Apache.  Your patience
with my ignorance
> is appreciated.
>
> I wrote a simple Hello World page in CherryPy.  I
launched it from the
> command prompt.  Using the browser to viewhttp://localhost:8080works

> fine.
>
> Then, I tried to put the CherryPy app behind Apache.  I
inserted the
> following lines in the httpd.conf file:
>
> <Location />
>     ProxyPasshttp://localhost:8080
>     ProxyPassReversehttp://localhost:8080
> </Location>
>
> Then, restarted Apache, cleared the browser cache.
>
> http://localhost:8080still
 works fine; however,http://localhost
> results in 403-Forbidden.
>
> I must be missing something elementary.  Any help
pointing me in the
> right direction is appreciated.
>
> Thanks in advance,
> -mm


--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CherryPy setup with Apache 2.2
country flaguser name
United States
2007-03-05 13:52:44
Hi, all -

I love CP but, for the life of me, cannot get it enabled/set
it up
behind Apache.

I am using the threaded version of Apache 2, python 2.4, CP
3.01 and
have tried fastcgi, SCGI, proxy (from this thread) and
mod-python.
Except for CP all other components are 'stock' Ubuntu 6.10.

Each method comes back with a 500 internal server error and
nothing in
either the CP log or Apache log.  I should also mention that
I have
tried to set up a CP 3.01 app on two servers with the same
basic
setup, the only difference being the non-threaded stock
Ubuntu Apache
2 on the other machine.  Same result.

Realiziing this is most likely (certainly?) my fault, can
anyone share
code they have actually used, both CP and Apache config, to
get a 3.01
CP app to deploy behind Apache 2.x?  I've pre-ordered the
upcoming
book but really need to figure this out sooner than that. 
Feel free
to send it offline if you are not comfortable sending it
through the
list.

Thanks for tolerating such a question!

Tom Fillmore
tfillmorgmail.com

On Mar 2, 8:25 am, "MartinM" <m...mccasland.com> wrote:
> I was able to get Apache working with CherryPy.  In
case other novices
> have the same problem, my issue described previously
was due to the
> Apache module mod_proxy_http.so being commented out in
the httpd.conf
> file.  I had mod_proxy.so included, but not not
mod_proxy_http.so.
>
> On Mar 1, 9:37 am, "MartinM" <m...mccasland.com> wrote:
>
> > I am very new to CherryPy and Apache.  Your
patience with my ignorance
> > is appreciated.
>
> > I wrote a simple Hello World page in CherryPy.  I
launched it from the
> > command prompt.  Using the browser to viewhttp://localhost:8080works

> > fine.
>
> > Then, I tried to put the CherryPy app behind
Apache.  I inserted the
> > following lines in the httpd.conf file:
>
> > <Location />
> >     ProxyPasshttp://localhost:8080
> >     ProxyPassReversehttp://localhost:8080
> > </Location>
>
> > Then, restarted Apache, cleared the browser
cache.
>
> >http://localhost:8080
stillworks fine; however,http://localhost
> > results in 403-Forbidden.
>
> > I must be missing something elementary.  Any help
pointing me in the
> > right direction is appreciated.
>
> > Thanks in advance,
> > -mm


--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CherryPy setup with Apache 2.2
country flaguser name
United States
2007-03-05 15:00:25
I feel for you... I must have spent hours changing one item,
restarting
Apache, checking again.

Here's what worked for me:

1) Make sure the following modules are enabled in the
httpd.conf file.
Mod_proxy.so
Mod_proxy_http.so
Mod_rewrite.so

Choose one of the following, depending on if you want to use
the Rewrite
Engine (2a) or the ProxyEngine (2b).

2a) Here's the config code I added to httpd.conf to get
CherryPy working
with ModRewrite:

    RewriteEngine on
    RewriteCond  % !autostart.cgi$
    RewriteCond % localhost/app
    RewriteRule ^(.*) http://localhost:8080/$1
[P]
    ErrorDocument 503 /cgi-bin/autostart.cgi

2b) Here the config code I added to get it working with
ModProxy:

	<Location /app>
	    ProxyPass http://localhost:8080
	    ProxyPassReverse http://localhost:8080
	    RequestHeader set CP-Location /app
    
	    ErrorDocument 503 /cgi-bin/autostart.cgi
	</Location>

Note: I have my CherryPy app in the /app directory off the
web root... As
you can see in 2a & 2b above.   For the root and other
directories, I have
Apache directly serving the files.

3) Here the autostart.cgi file in the Apache cgi-bin
directory:

#!C:python25python.exe
print "Content-type: text/htmlrn"
print """<html><head><META
HTTP-EQUIV="Refresh" CONTENT="1;
URL=/app"></head><body>Restarting site
...<a href="/app">click
here<a></body></html>"""
import os
os.setpgid(os.getpid(), 0)
os.system('C:python25python.exe
C:ApacheWebPubWWWRootCherryPyTest.py
&')

NOTE:  This is straight from the CherryPy cookbook.

4) Finally, the CherryPyTest.py code started by the
autostart.cgi script:

import cherrypy

class HelloWorld:
    def index(self):
        return "Hello world!"
    index.exposed = True
    
cherrypy.root = HelloWorld()

cherrypy.quickstart(HelloWorld())

I hope this helps... 	
-mm


-----Original Message-----
From: cherrypy-usersgooglegroups.com
[mailto:cherrypy-usersgooglegroups.com] On Behalf Of Tom
Fillmore
Sent: Monday, March 05, 2007 1:53 PM
To: cherrypy-users
Subject: [cherrypy-users] Re: CherryPy setup with Apache
2.2


Hi, all -

I love CP but, for the life of me, cannot get it enabled/set
it up
behind Apache.

I am using the threaded version of Apache 2, python 2.4, CP
3.01 and
have tried fastcgi, SCGI, proxy (from this thread) and
mod-python.
Except for CP all other components are 'stock' Ubuntu 6.10.

Each method comes back with a 500 internal server error and
nothing in
either the CP log or Apache log.  I should also mention that
I have
tried to set up a CP 3.01 app on two servers with the same
basic
setup, the only difference being the non-threaded stock
Ubuntu Apache
2 on the other machine.  Same result.

Realiziing this is most likely (certainly?) my fault, can
anyone share
code they have actually used, both CP and Apache config, to
get a 3.01
CP app to deploy behind Apache 2.x?  I've pre-ordered the
upcoming
book but really need to figure this out sooner than that. 
Feel free
to send it offline if you are not comfortable sending it
through the
list.

Thanks for tolerating such a question!

Tom Fillmore
tfillmorgmail.com

On Mar 2, 8:25 am, "MartinM" <m...mccasland.com> wrote:
> I was able to get Apache working with CherryPy.  In
case other novices
> have the same problem, my issue described previously
was due to the
> Apache module mod_proxy_http.so being commented out in
the httpd.conf
> file.  I had mod_proxy.so included, but not not
mod_proxy_http.so.
>
> On Mar 1, 9:37 am, "MartinM" <m...mccasland.com> wrote:
>
> > I am very new to CherryPy and Apache.  Your
patience with my ignorance
> > is appreciated.
>
> > I wrote a simple Hello World page in CherryPy.  I
launched it from the
> > command prompt.  Using the browser to viewhttp://localhost:8080works

> > fine.
>
> > Then, I tried to put the CherryPy app behind
Apache.  I inserted the
> > following lines in the httpd.conf file:
>
> > <Location />
> >     ProxyPasshttp://localhost:8080
> >     ProxyPassReversehttp://localhost:8080
> > </Location>
>
> > Then, restarted Apache, cleared the browser
cache.
>
> >http://localhost:8080
stillworks fine; however,http://localhost
> > results in 403-Forbidden.
>
> > I must be missing something elementary.  Any help
pointing me in the
> > right direction is appreciated.
>
> > Thanks in advance,
> > -mm




--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CherryPy setup with Apache 2.2
user name
2007-03-05 16:01:55
Hiya!

We were benchmarking different solutions here the other day
and by far
the fastest one was using CherryPy's cpmodpy or whatever
it's
officially called. I found some configuration files from
that time and
if I remember correctly, it basically goes like this:

In your Apache2 config for the webroot (/var/www in this
case) directory:
PythonPath "sys.path+['/var/www']"
SetHandler python-program
PythonHandler cherrypy._cpmodpy::handler
PythonOption cherrypy.setup myapp::setup_server

As you can see, it references myapp::setup_server. So in
/var/www/myapp.py we have:
import cherrypy
class Root:
        cherrypy.expose
        def index(self):
                return "Hello World!"
def setup_server():
        cherrypy.tree.mount(Root())
        cherrypy.config.update({'environment':
'production',
                                'log.screen': False,
                                'show_tracebacks': False,
                                'server.socket_queue_size' :
15,
                                'server.thread_pool' : 1,
                                'autoreload.on' : False})
        cherrypy.engine.start(blocking=False)

And that should be it, really. Just restart Apache2 and you
should see
"Hello World!" when you point your browser to
localhost.

>From our benchmarks (done with several tests) we saw
that this
solution provides the speed closest to native CherryPy --
that is,
without Apache2. Native CherryPy was able to handle the main
test at
444 requests per second, CherryPy via Apache2 and this
solution
averaged to 441 requests per second.

CherryPy via mod_python's WSGI gateway was a hopeless 354
requests per second.

We didn't bother testing mod_proxy, though. The goal was to
just run a
couple of tests to see if CherryPy can scale to high loads
when
compared to PHP. It did and we're using CherryPy for our
commercial
project -- so far coding with CherryPy has been a real
pleasure 


Elver

On 05/03/07, Tom Fillmore <tfillmorgmail.com> wrote:
>
> Hi, all -
>
> I love CP but, for the life of me, cannot get it
enabled/set it up
> behind Apache.
>
> I am using the threaded version of Apache 2, python
2.4, CP 3.01 and
> have tried fastcgi, SCGI, proxy (from this thread) and
mod-python.
> Except for CP all other components are 'stock' Ubuntu
6.10.
>
> Each method comes back with a 500 internal server error
and nothing in
> either the CP log or Apache log.  I should also mention
that I have
> tried to set up a CP 3.01 app on two servers with the
same basic
> setup, the only difference being the non-threaded stock
Ubuntu Apache
> 2 on the other machine.  Same result.
>
> Realiziing this is most likely (certainly?) my fault,
can anyone share
> code they have actually used, both CP and Apache
config, to get a 3.01
> CP app to deploy behind Apache 2.x?  I've pre-ordered
the upcoming
> book but really need to figure this out sooner than
that.  Feel free
> to send it offline if you are not comfortable sending
it through the
> list.
>
> Thanks for tolerating such a question!
>
> Tom Fillmore
> tfillmorgmail.com
>
> On Mar 2, 8:25 am, "MartinM" <m...mccasland.com> wrote:
> > I was able to get Apache working with CherryPy. 
In case other novices
> > have the same problem, my issue described
previously was due to the
> > Apache module mod_proxy_http.so being commented
out in the httpd.conf
> > file.  I had mod_proxy.so included, but not not
mod_proxy_http.so.
> >
> > On Mar 1, 9:37 am, "MartinM"
<m...mccasland.com> wrote:
> >
> > > I am very new to CherryPy and Apache.  Your
patience with my ignorance
> > > is appreciated.
> >
> > > I wrote a simple Hello World page in
CherryPy.  I launched it from the
> > > command prompt.  Using the browser to viewhttp://localhost:8080works

> > > fine.
> >
> > > Then, I tried to put the CherryPy app behind
Apache.  I inserted the
> > > following lines in the httpd.conf file:
> >
> > > <Location />
> > >     ProxyPasshttp://localhost:8080
> > >     ProxyPassReversehttp://localhost:8080
> > > </Location>
> >
> > > Then, restarted Apache, cleared the browser
cache.
> >
> > >http://localhost:8080
stillworks fine; however,http://localhost
> > > results in 403-Forbidden.
> >
> > > I must be missing something elementary.  Any
help pointing me in the
> > > right direction is appreciated.
> >
> > > Thanks in advance,
> > > -mm
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CherryPy setup with Apache 2.2
country flaguser name
United States
2007-03-06 10:34:08
Thanks to Elver and Marty for their quick replies...

I tried both of your suggestions (using cut and paste) but
still got the 
same result, 'Unrecoverable server error'.  Using Proxy CP
could be 
reached but it either responded with a 'permission denied'
(an Apache 
error corrected by modifying Directory settings in the conf
file) or 
'Can't find path '/' (a CP error).

At this point I am tempted to simply rebuild my entire
Python 
installation but really don't want to go to that extreme
without one 
last pass through this group.

As an aside, I've also done some work with Pylons (gasp!)
and have been 
able to successfully deploy these apps on the same machines
without 
incident using mod-python.  On a Pylons thread I did read
that CP v3.x 
did not correctly identify what would be the 'root' of an
apps' 
install.  that thread lead to a patch for Dowski's (Fu's?)
cpmodpy, but 
since mod-python support is now in CP I did not apply it. 
Do you have 
any insight as to that?

Thanks again for your patience!!

Tom Fillmore


Elver Loho wrote:
> Hiya!
>
> We were benchmarking different solutions here the other
day and by far
> the fastest one was using CherryPy's cpmodpy or
whatever it's
> officially called. I found some configuration files
from that time and
> if I remember correctly, it basically goes like this:
>
> In your Apache2 config for the webroot (/var/www in
this case) directory:
> PythonPath "sys.path+['/var/www']"
> SetHandler python-program
> PythonHandler cherrypy._cpmodpy::handler
> PythonOption cherrypy.setup myapp::setup_server
>
> As you can see, it references myapp::setup_server. So
in
> /var/www/myapp.py we have:
> import cherrypy
> class Root:
>         cherrypy.expose
>         def index(self):
>                 return "Hello World!"
> def setup_server():
>         cherrypy.tree.mount(Root())
>         cherrypy.config.update({'environment':
'production',
>                                 'log.screen': False,
>                                 'show_tracebacks':
False,
>                                
'server.socket_queue_size' : 15,
>                                 'server.thread_pool' :
1,
>                                 'autoreload.on' :
False})
>         cherrypy.engine.start(blocking=False)
>
> And that should be it, really. Just restart Apache2 and
you should see
> "Hello World!" when you point your browser to
localhost.
>
> >From our benchmarks (done with several tests) we
saw that this
> solution provides the speed closest to native CherryPy
-- that is,
> without Apache2. Native CherryPy was able to handle the
main test at
> 444 requests per second, CherryPy via Apache2 and this
solution
> averaged to 441 requests per second.
>
> CherryPy via mod_python's WSGI gateway was a hopeless
354 requests per second.
>
> We didn't bother testing mod_proxy, though. The goal
was to just run a
> couple of tests to see if CherryPy can scale to high
loads when
> compared to PHP. It did and we're using CherryPy for
our commercial
> project -- so far coding with CherryPy has been a real
pleasure 
>
>
> Elver
>
> On 05/03/07, Tom Fillmore <tfillmorgmail.com> wrote:
>   
>> Hi, all -
>>
>> I love CP but, for the life of me, cannot get it
enabled/set it up
>> behind Apache.
>>
>> I am using the threaded version of Apache 2, python
2.4, CP 3.01 and
>> have tried fastcgi, SCGI, proxy (from this thread)
and mod-python.
>> Except for CP all other components are 'stock'
Ubuntu 6.10.
>>
>> Each method comes back with a 500 internal server
error and nothing in
>> either the CP log or Apache log.  I should also
mention that I have
>> tried to set up a CP 3.01 app on two servers with
the same basic
>> setup, the only difference being the non-threaded
stock Ubuntu Apache
>> 2 on the other machine.  Same result.
>>
>> Realiziing this is most likely (certainly?) my
fault, can anyone share
>> code they have actually used, both CP and Apache
config, to get a 3.01
>> CP app to deploy behind Apache 2.x?  I've
pre-ordered the upcoming
>> book but really need to figure this out sooner than
that.  Feel free
>> to send it offline if you are not comfortable
sending it through the
>> list.
>>
>> Thanks for tolerating such a question!
>>
>> Tom Fillmore
>> tfillmorgmail.com
>>
>> On Mar 2, 8:25 am, "MartinM" <m...mccasland.com> wrote:
>>     
>>> I was able to get Apache working with CherryPy.
 In case other novices
>>> have the same problem, my issue described
previously was due to the
>>> Apache module mod_proxy_http.so being commented
out in the httpd.conf
>>> file.  I had mod_proxy.so included, but not not
mod_proxy_http.so.
>>>
>>> On Mar 1, 9:37 am, "MartinM"
<m...mccasland.com> wrote:
>>>
>>>       
>>>> I am very new to CherryPy and Apache.  Your
patience with my ignorance
>>>> is appreciated.
>>>>         
>>>> I wrote a simple Hello World page in
CherryPy.  I launched it from the
>>>> command prompt.  Using the browser to
viewhttp://localhost:8080works

>>>> fine.
>>>>         
>>>> Then, I tried to put the CherryPy app
behind Apache.  I inserted the
>>>> following lines in the httpd.conf file:
>>>>         
>>>> <Location />
>>>>     ProxyPasshttp://localhost:8080
>>>>     ProxyPassReversehttp://localhost:8080
>>>> </Location>
>>>>         
>>>> Then, restarted Apache, cleared the browser
cache.
>>>>         
>>>> http://localhost:8080
stillworks fine; however,http://localhost
>>>> results in 403-Forbidden.
>>>>         
>>>> I must be missing something elementary. 
Any help pointing me in the
>>>> right direction is appreciated.
>>>>         
>>>> Thanks in advance,
>>>> -mm
>>>>         
>>     
>
> >
>
>
>   

--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CherryPy setup with Apache 2.2
user name
2007-03-06 11:16:55
On 3/6/07, Tom Fillmore <tfillmorsocalbahai.org> wrote:
>
> Thanks to Elver and Marty for their quick replies...
>
> I tried both of your suggestions (using cut and paste)
but still got the
> same result, 'Unrecoverable server error'.  Using Proxy
CP could be
> reached but it either responded with a 'permission
denied' (an Apache
> error corrected by modifying Directory settings in the
conf file) or
> 'Can't find path '/' (a CP error).

Perhaps the missing ingredient is the CP proxy tool?  It is
the CP3
version of base_url_filter which was useful for hosting CP
apps behind
apache in 2.x.

I have attached a complete example that has a HelloWorld app
mounted
at '/app' in the CP object tree and also at Location '/app'
in the
Apache conf file.  Additionally, it passes requests for
'/app/static'
back to apache for serving static files.

It works on my Ubuntu 6.10 system.  Symlink the included
cptest file
in your /etc/apache2/sites-enabled dir.  Give it a whirl and
see if it
works for you.  Feel free to post back with further
questions.

Christian
http://www.dowski.com

--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


  
Re: CherryPy setup with Apache 2.2
user name
2007-03-06 11:22:43
On 3/6/07, Christian Wyglendowski <christiandowski.com> wrote:
> Symlink the included cptest file in your
/etc/apache2/sites-enabled
> dir.

Oh, you'll probably have to adjust the paths in that file. 
I also
setup an entry in /etc/hosts that pointed cptest to
127.0.0.1 so that
the right Host header gets set for the request and thus
apache
dispatches to the correct vhost.

Christian

--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CherryPy setup with Apache 2.2
country flaguser name
United States
2007-03-06 12:41:33
You _rock_, sir!

I look forward to trying this out - I'm hoping this works,
it's nice
to hear we have similar setups...  If it does work, methinks
this
might make a nice addition to the wiki, I can't believe I am
the only
one experiencing this problem.

Thanks again

Tom Fillmore


On Mar 6, 9:16 am, "Christian Wyglendowski"
<christ...dowski.com>
wrote:
> On 3/6/07, Tom Fillmore <tfill...socalbahai.org> wrote:
>
>
>
> > Thanks to Elver and Marty for their quick
replies...
>
> > I tried both of your suggestions (using cut and
paste) but still got the
> > same result, 'Unrecoverable server error'.  Using
Proxy CP could be
> > reached but it either responded with a 'permission
denied' (an Apache
> > error corrected by modifying Directory settings in
the conf file) or
> > 'Can't find path '/' (a CP error).
>
> Perhaps the missing ingredient is the CP proxy tool? 
It is the CP3
> version of base_url_filter which was useful for hosting
CP apps behind
> apache in 2.x.
>
> I have attached a complete example that has a
HelloWorld app mounted
> at '/app' in the CP object tree and also at Location
'/app' in the
> Apache conf file.  Additionally, it passes requests for
'/app/static'
> back to apache for serving static files.
>
> It works on my Ubuntu 6.10 system.  Symlink the
included cptest file
> in your /etc/apache2/sites-enabled dir.  Give it a
whirl and see if it
> works for you.  Feel free to post back with further
questions.
>
> Christianhttp://www.dowski.com
>
>  cp_proxied.tar.gz
> 1KDownload


--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: CherryPy setup with Apache 2.2
country flaguser name
United States
2007-03-06 14:54:15
YYYYEEESSSSS!!!!!!

Absolute success!!!  Perhaps this example should be part of
the
wiki??  One suggestion if you do - include an index file for
the
htdocs folder (the one I created, 'index.html' is in this
groups' file
section) to make it a bit easier for newbies to
tinker/absorb how to
configure a setup.

Thanks a bunch!

Tom Fillmore



On Mar 6, 10:41 am, "Tom Fillmore"
<tfill...gmail.com> wrote:
> You _rock_, sir!
>
> I look forward to trying this out - I'm hoping this
works, it's nice
> to hear we have similar setups...  If it does work,
methinks this
> might make a nice addition to the wiki, I can't believe
I am the only
> one experiencing this problem.
>
> Thanks again
>
> Tom Fillmore
>
> On Mar 6, 9:16 am, "Christian Wyglendowski"
<christ...dowski.com>
> wrote:
>
> > On 3/6/07, Tom Fillmore <tfill...socalbahai.org> wrote:
>
> > > Thanks to Elver and Marty for their quick
replies...
>
> > > I tried both of your suggestions (using cut
and paste) but still got the
> > > same result, 'Unrecoverable server error'. 
Using Proxy CP could be
> > > reached but it either responded with a
'permission denied' (an Apache
> > > error corrected by modifying Directory
settings in the conf file) or
> > > 'Can't find path '/' (a CP error).
>
> > Perhaps the missing ingredient is the CP proxy
tool?  It is the CP3
> > version of base_url_filter which was useful for
hosting CP apps behind
> > apache in 2.x.
>
> > I have attached a complete example that has a
HelloWorld app mounted
> > at '/app' in the CP object tree and also at
Location '/app' in the
> > Apache conf file.  Additionally, it passes
requests for '/app/static'
> > back to apache for serving static files.
>
> > It works on my Ubuntu 6.10 system.  Symlink the
included cptest file
> > in your /etc/apache2/sites-enabled dir.  Give it a
whirl and see if it
> > works for you.  Feel free to post back with
further questions.
>
> > Christianhttp://www.dowski.com
>
> >  cp_proxied.tar.gz
> > 1KDownload


--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-10] [11-12]

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