On Sun, Feb 22, 2015 at 3:22 PM, Romain FABBRI < [email protected]> wrote:
> I donât see how nginx is related to the new httpd⦠> > If it is, please explain > > > Your are not force to solve all the problem in one process. > Maybe a hack could be done inside the canonicalize_path function in > https://github.com/reyk/httpd/blob/master/httpd.c ? > > But not really sure when looking at the sources it would be the right way > to do that⦠> > > > *De :* sven falempin [mailto:[email protected]] > *Envoyé :* dimanche 22 février 2015 19:08 > *à :* Romain FABBRI > *Cc :* misc > *Objet :* Re: Emulate apache mod_rewrite feature with new httpd > > > > > > > > On Sun, Feb 22, 2015 at 5:23 AM, Romain FABBRI < > [email protected]> wrote: > > I've managed to configure the new httpd server to use as a replacement for > apache. (With is really great. Thanks to Reyk !) > > I'm strugling to make my drupal site work, because of the clean url module. > > I used to have the following apache mod_rewrite configuration : > RewriteEngine on > RewriteBase / > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA] > > Basically the rule means that if the file or folder is not found then the > request is rewrited to /index.php?q=request > For exemple if/user doesn't exist modify url to /index.php?q=user > > I've looked into man page for httpd and I've seen that the block > return statement might be of use to emulate this need. but I haven't found > many info on the subject. > > Has someone found a way to make that with the new httpd server ? > > PS : I'm running from snapshot (5.7 GENERIC#716 i386) > > Romain > > > > > > You should go to the nginx pages : > > http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files > > > > > > > -- > () ascii ribbon campaign - against html e-mail > /\ > -- () ascii ribbon campaign - against html e-mail /\

