How to mirror the site on the cdn docroot, no subfolders for pop

12 views
Skip to first unread message

somer

unread,
Oct 14, 2010, 11:09:39 AM10/14/10
to CirruxCache, sam....@gmail.com
Hello,

I want to use the pop as my domain`s docroot not a folder under it,
how can i do this ?

So the aapid.appsot.com will directly point to mydomain.tld no
subfolders for pop location.

Thank You.

Samuel Alba

unread,
Oct 14, 2010, 11:13:31 AM10/14/10
to somer, CirruxCache
Hi,

This is simple by mapping a PoP configuration on root:

urls['default'] = (
'/_cron/(.*)', 'Cron',
'(/.*)', 'Static'
)

This example takes the Static default configuration.

- Sam

--
Samuel Alba

somer

unread,
Oct 14, 2010, 12:51:34 PM10/14/10
to CirruxCache
And now that gives out 500 internal server error.
urls['default'] = (
  '/_cron/(.*)', 'Cron',
  '(/.*)', 'Static'
  )


class Static(cache.Service):
origin = 'http://website.com'
allowFlushFrom = ['127.0.0.1']
forceTTL = 2592000 # 1 hour
ignoreQueryString = True
forwardPost = False

What is wrong here ?

On 14 Ekim, 18:13, Samuel Alba <sam.a...@gmail.com> wrote:
> Hi,
>
> This is simple by mapping a PoP configuration on root:
>
> urls['default'] = (
>   '/_cron/(.*)', 'Cron',
>   '(/.*)', 'Static'
>   )
>
> This example takes the Static default configuration.
>
> - Sam
>

Samuel Alba

unread,
Oct 14, 2010, 12:53:45 PM10/14/10
to cirru...@googlegroups.com
send me your wall app.py in attachment.

> --
> Project page: http://code.google.com/p/cirruxcache/
> News: http://www.shad.cc/tag/cirruxcache
> Groups: http://groups.google.com/group/cirruxcache
>

--
Samuel Alba

somer

unread,
Oct 14, 2010, 1:05:41 PM10/14/10
to CirruxCache
just sent it to you.Thanks.

somer

unread,
Oct 14, 2010, 2:30:41 PM10/14/10
to CirruxCache
I solved this, i put the code in wrong place, now it works, thanks a
lot for your help.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages