Skip to content

Commit

Permalink
* Now using FastCGI directly for private files.
Browse files Browse the repository at this point in the history
  • Loading branch information
António P. P. Almeida committed Jun 28, 2011
1 parent db17f7e commit 8ab2a27
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
10 changes: 9 additions & 1 deletion sites-available/drupal.conf
Expand Up @@ -28,7 +28,15 @@ location / {

## Regular private file serving (i.e. handled by Drupal).
location ~* /system/files/ {
try_files $uri /index.php?q=$uri&$args;
## Include the specific FastCGI configuration. This is for a
## FCGI backend like php-cgi or php-fpm.
include fastcgi_private_files.conf;
fastcgi_pass phpcgi;

## If proxying to apache comment the two lines above and
## uncomment the line below.
#proxy_pass http://phpapache;

## For not signaling a 404 in the error log whenever the
## system/files directory is accessed add the line below.
## Note that the 404 is the intended behavior.
Expand Down
10 changes: 9 additions & 1 deletion sites-available/drupal_boost.conf
Expand Up @@ -29,7 +29,15 @@ location / {

## Regular private file serving (i.e. handled by Drupal).
location ~* /system/files/ {
try_files $uri /index.php?q=$uri&$args;
## Include the specific FastCGI configuration. This is for a
## FCGI backend like php-cgi or php-fpm.
include fastcgi_private_files.conf;
fastcgi_pass phpcgi;

## If proxying to apache comment the two lines above and
## uncomment the line below.
#proxy_pass http://phpapache;

## For not signaling a 404 in the error log whenever the
## system/files directory is accessed add the line below.
## Note that the 404 is the intended behavior.
Expand Down
10 changes: 9 additions & 1 deletion sites-available/drupal_spaces.conf
Expand Up @@ -33,7 +33,15 @@ location / {

## Regular private file serving (i.e. handled by Drupal).
location ~* /system/files/ {
try_files $uri @drupal;
## Include the specific FastCGI configuration. This is for a
## FCGI backend like php-cgi or php-fpm.
include fastcgi_private_files.conf;
fastcgi_pass phpcgi;

## If proxying to apache comment the two lines above and
## uncomment the line below.
#proxy_pass http://phpapache;

## For not signaling a 404 in the error log whenever the
## system/files directory is accessed add the line below.
## Note that the 404 is the intended behavior.
Expand Down
10 changes: 9 additions & 1 deletion sites-available/drupal_spaces_boost.conf
Expand Up @@ -34,7 +34,15 @@ location / {

## Regular private file serving (i.e. handled by Drupal).
location ~* /system/files/ {
try_files $uri @drupal;
## Include the specific FastCGI configuration. This is for a
## FCGI backend like php-cgi or php-fpm.
include fastcgi_private_files.conf;
fastcgi_pass phpcgi;

## If proxying to apache comment the two lines above and
## uncomment the line below.
#proxy_pass http://phpapache;

## For not signaling a 404 in the error log whenever the
## system/files directory is accessed add the line below.
## Note that the 404 is the intended behavior.
Expand Down

0 comments on commit 8ab2a27

Please sign in to comment.