Welcome! Log In Create A New Profile

Advanced

Re: drupal+nginx: this works => using try_files

Mark Alan
March 17, 2009 04:13PM
mike wrote:
> a) drupal should not include scripts/etc. that should not be ran via
> the web -in- the webroot, or
> b) they should be localized to only one directory

Those were/are options of the Drupal Development Team.

>> ((cron\.php|settings\.php)|\.(htaccess|engine|inc|info|install|module|profile|pl|po|sh|.*sql|theme|tpl(\.php)?|xtmpl)$|^(Entries.*|Repository|Root|Tag|Template))$
> That is ugly as sin to me, and could change at any given time. Is
> there a true need to protect all of these?

Yes

> Is it only a specific folder?

No.

> You could always use location /folder { internal; } then too.

That is an interesting idea, but the level of complexity would be quite
the same.

> you can add these to fastcgi_params, no need for repetition:
> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
> fastcgi_index index.php;

In what way would that contribute to reduce complexity, or better
document the procedure?

> and actually, since drupal has nothing really specific besides a
> single line,

On the contrary, it has.

> you could get away with:
> try_files $uri $uri/ /index.php?q=$request_uri;

That does not work. You could at least have tried it...

> I don't really like the current wiki examples either. It's got a mix
> of parsing php and try_files and other wacky stuff that will just lead
> to confusion.

I am sure that you will provide a couple of cleaner examples to help us all.


M.
Subject Author Posted

drupal+nginx: this works => using try_files

Mark Alan March 17, 2009 06:01AM

Re: drupal+nginx: this works => using try_files

mike March 17, 2009 01:37PM

Re: drupal+nginx: this works => using try_files

mike March 17, 2009 02:05PM

Re: drupal+nginx: this works => using try_files

Mark Alan March 17, 2009 04:13PM

Re: drupal+nginx: this works => using try_files

mike March 17, 2009 06:44PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready