> On 22 Feb 2015, at 20:23, 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

i havent tried drupal behind httpd yet, but if i did i would unconditionally 
route requests into the drupal controller (index.php), and use a cdn module to 
have drupal generate urls to static assets (ie, the css/js/image files on disk) 
against a separate domain or url prefix. or you could write a simple module 
that takes advantage of hook_file_url_alter. that has greatly simplified our 
configs in the frontend web servers in front of our drupal poop.

Reply via email to