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
/\