Here is my complete configuration, Im pretty sure it works, what cherokee version are you using??

This should work with 0.5.4, prior versions won't even start with this configuration.


======== /etc/cherokee/sites-available/mysite =============
Server mysite.com, www.mysite.com {
        DocumentRoot /home/lawaloca/public_html
        Include /etc/cherokee/sites-available/drupal.conf
}

======== /etc/cherokee/sites-available/drupal.conf ===========

DirectoryIndex index.php, index.htm, index.html
Log combined {
    AccessLog /var/log/cherokee/lawaloca.cherokee.access
    ErrorLog  /var/log/cherokee/lawaloca.cherokee.error
}

ErrorHandler error_redir {
  404 http://www.lawaloca.com/index.php
}

Directory / {
  Handler common
}

Request "^/([^\?]*)(\?(.*))?$" {
        Handler redir {
                Rewrite "/index.php?q=$1&$3&"
        }
}

Request "^/(.*)\?(.*)/?" {
    Handler redir {
        Rewrite "/index.php?q=$1&$2"
    }
}

#pager comentarios
Request "^/node/(.*)\?(.*)/?" {
    Handler redir {
        Rewrite "/index.php?q=node/$1&$2"
    }
}

Request "(\.(inc|module|pl|sh|sql|theme|engine|xtmpl)|Entries|Repositories|Root|scripts|updates)$" {
        Allow from localhost
}
Directory /modules { Handler file }
Directory /images  { Handler file }
Directory /files   { Handler file }
Directory /themes  { Handler file }
Directory /local   { Handler file }
Directory /misc    { Handler file }
Directory /img    { Handler file }

Directory /about {
        Handler server_info {
        JustAbout
        }
}

Request "^/xml/(.*)$" {
   Handler redir { Rewrite "/node/feed/$1" }
}

Extension php {
        handler fcgi {
                server localhost:8000 {
                        Env PHP_FCGI_MAX_REQUESTS "2000"
                        Env PHP_FCGI_CHILDREN     "20"
                        Interpreter "/usr/lib/cgi-bin/php4 -b 127.0.0.1:8000"
                        #Interpreter "/usr/local/bin/php -b 127.0.0.1:8000"
                }
        }
}




On 7/22/06, Jose Luis Rivas Contreras < [EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jordi Adame escribió:
>

Hi, my php5-fcgi already runs great, thanks Jose ;-). Now my problem is
with Drupal and some directions like:

http://localhost/index.php?q=user/1

Gives me "403 Forbidden"

>
>     > Alguien me podría ayudar? Además de decirme como hacer de que funcione
>     > bien Drupal, no se donde se coloca las configuraciones del
>     .htaccess...
>
>     Maybe you can try to run Drupal without the .htaccess files. I recall
>     Drupal working correctly without them some versions ago. Another
>     documentation that might be useful is Jaws and FastCGI over Cherokee in
>     [1], also in the documentation accompanying Cherokee's package.

I already try it, i think that's a problem with the .htaccess the fact
that i can't enter to URIs like above one.

>
>
> To make drupal work just as if it had .htaccess add this to your host config
>
> Directory / {
>   Handler common
> }
>
> Request "^/([^\?]*)(\?(.*))?$" {
>         Handler redir {
>                 Rewrite "/index.php?q=$1&$3&"
>         }
> }
>
> Request "^/(.*)\?(.*)/?" {
>     Handler redir {
>         Rewrite "/index.php?q=$1&$2"
>     }
> }
>
> #pager comentarios
> Request "^/node/(.*)\?(.*)/?" {
>     Handler redir {
>         Rewrite "/index.php?q=node/$1&$2"
>     }
> }
>
> Directory /modules { Handler file }
> Directory /images  { Handler file }
> Directory /files   { Handler file }
> Directory /themes  { Handler file }
> Directory /local   { Handler file }
> Directory /misc    { Handler file }
>
> Request "^/xml/(.*)$" {
>    Handler redir { Rewrite "/node/feed/$1" }
> }
>
>  They MUST be in that order or these rewrites won't work.
>
> Good luck

I already do it (Thanks by the way :)) But doesn't work yet.

Is curios that directions like http://localhost/index.php?q=user/1
doesn't work but http://localhost/index.php?q=user/register does works.

Thanks.

And sorry for the first email in Spanish ;-).

- --
- ----

~ghostbar @ linux/debian 'testing' on i686 - Linux Counter# 382503
http://ghostbar.ath.cx/ - irc.freenode.net #talug #velug
San Cristobal - Venezuela. TALUG -- http://linuxtachira.org
Fingerprint = 3E7D 4267 AFD5 2407 2A37  20AC 38A0 AD5B CACA B118

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEwlcsOKCtW8rKsRgRAmfuAKDLn4AuRYMY6DVZLbnO0xvph0kkHwCgoD5A
yNw35KVG4Q2R052vU/TbjAo=
=oPLr
-----END PGP SIGNATURE-----
_______________________________________________
Cherokee mailing list
[email protected]
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee

_______________________________________________
Cherokee mailing list
[email protected]
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee

Reply via email to