Hello Angel, Did you read the message I sent?
http://lists.octality.com/pipermail/cherokee/2008-December/ 009424.html That message outlines the solution to the problem. I hope it's useful for you. Cheers! On 03-dic-08, at 12:46, Angel Berríos Dávila wrote: > Maybe i forgot to introduce myself. > > I am Angel Berríos a IT consultant that specialize in open source > solutions. I have a small company in Puerto Rico where I deliver > services for the government and private companies. > > Let me start by congratulate you for this extraordinary project and > your > contributions to the community. > > I recently read an article in howtoforge web site and decided to > take a > peek of Cherokee after reading about the amazing benchmarks and > reviews > shown at the community web site. > > I was not able to find a forum or other knowledge base (wiki) for the > question that I have. I do not even know if I am posting in the right > mail list, but please advise me where to post if that is the case. > > Any help for setting this will be greatly appreciate. > > > On Mon, 2008-12-01 at 10:11 -0400, Angel Berríos Dávila wrote: >> Saludos! >> >> I am experimenting with cherokee as a front end to Plone (Zope) web >> server. >> >> In Apache I achieved that by giving the following rule to the virtual >> host conf: >> >> RewriteEngine on >> RewriteRule ^/(.*) >> http://localhost:8080/VirtualHostBase/http/%{SERVER_NAME}:80/ >> {PLONE_SITE_ID}/VirtualHostRoot/$1 [L,P] >> >> Sinopsis: >> >> from Zope Virtual Host monster documentation: >> >> You add these names by rewriting incoming URLs >> >> Visitors to your site don't see these special names, of course. You >> insert them into the path using either an external rewriter, such >> as an >> Apache RewriteRule or ProxyPass directive, or by setting up a >> mapping on >> the "Mappings" tab. >> >> For example, suppose Zope is running on port 8080 behind an Apache >> running on port 80. You place a Virtual Host Monster in the Zope root >> Folder, and use Apache to rewrite "/(.*)" to >> http://localhost:8080/VirtualHostBase/http/www.buystuff.com:80/buystuff.com/VirtualHostRoot/$1 >> >> I am using apache right now and it works with that rule for our >> customer >> sites, but I believe it's an overkill. >> >> I tried to define a virtual host in cherokee with the following: >> >> vserver!20!directory_index = index.php,index.html >> vserver!20!document_root = /var/www >> vserver!20!logger = combined >> vserver!20!logger!access!buffsize = 16384 >> vserver!20!logger!access!filename = /var/log/cherokee.access >> vserver!20!logger!access!type = file >> vserver!20!logger!error!filename = /var/log/cherokee.error >> vserver!20!logger!error!type = file >> vserver!20!nick = cb.rbgsys.com >> vserver!20!rule!700!encoder!deflate = 0 >> vserver!20!rule!700!encoder!gzip = 0 >> vserver!20!rule!700!handler = redir >> vserver!20!rule!700!handler!rewrite!1!show = 0 >> vserver!20!rule!700!handler!rewrite!1!substring = >> http://localhost:8080/VirtualHostBase/http/cb.rbgsys.com:80/cb/VirtualHostRoot/$1 >> vserver!20!rule!700!match = request >> vserver!20!rule!700!match!request = ^/(.*) >> vserver!20!rule!700!only_secure = 0 >> vserver!20!rule!600!encoder!gzip = 1 >> vserver!20!rule!600!handler = fcgi >> vserver!20!rule!600!handler!balancer = round_robin >> vserver!20!rule!600!handler!balancer!source!1 = 1 >> vserver!20!rule!600!match = extensions >> vserver!20!rule!600!match!extensions = php >> vserver!20!rule!500!encoder!gzip = 1 >> vserver!20!rule!500!handler = server_info >> vserver!20!rule!500!handler!type = just_about >> vserver!20!rule!500!match = directory >> vserver!20!rule!500!match!directory = /about >> vserver!20!rule!400!document_root = /usr/lib/cgi-bin/ >> vserver!20!rule!400!handler = cgi >> vserver!20!rule!400!match = directory >> vserver!20!rule!400!match!directory = /cgi-bin >> vserver!20!rule!300!document_root = /usr/share/cherokee/themes/ >> vserver!20!rule!300!handler = file >> vserver!20!rule!300!match = directory >> vserver!20!rule!300!match!directory = /cherokee_themes >> vserver!20!rule!200!document_root = /usr/share/cherokee/icons/ >> vserver!20!rule!200!handler = file >> vserver!20!rule!200!match = directory >> vserver!20!rule!200!match!directory = /icons >> vserver!20!rule!100!encoder!deflate = 0 >> vserver!20!rule!100!encoder!gzip = 0 >> vserver!20!rule!100!handler = common >> vserver!20!rule!100!match = default >> vserver!20!rule!100!only_secure = 0 >> >> But have been unsuccessful so far with: >> >> 1) lynx http://cb.rbgsys.com/ from localhost >> >> Result: >> The requested URL >> http://localhost:8080/VirtualHostBase/http/cb.rbgsys.com:80/cb/VirtualHostRoot/ >> >> was not found on this server. >> >> 2) http://cb.rbgsys.com/ from remote >> >> Result: >> 404 Not Found >> The requested URL >> http://localhost:8080/VirtualHostBase/http/cb.rbgsys.com:80/cb/VirtualHostRoot/ >> >> was not found on this server. >> >> But if I try: >> >> lynx >> http://localhost:8080/VirtualHostBase/http/cb.rbgsys.com:80/cb/VirtualHostRoot/ >> >> from localhost >> >> It will bring the correct Plone/Zope web page. >> >> I am including the full Apache working conf file as an attachement. >> >> Thanks in advanced for your advise! >> > -- > Angel Berríos Dávila <[EMAIL PROTECTED]> > RBG Information Systems > > _______________________________________________ > Cherokee mailing list > [email protected] > http://lists.octality.com/listinfo/cherokee -- Greetings, alo http://www.alobbs.com/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
