Issue w/ nginx in hybrid static/php load balancer scenario
Igor Sysoev
is at rambler-co.ru
Tue Feb 12 01:09:16 MSK 2008
On Mon, Feb 11, 2008 at 01:56:07PM -0800, Mike Javorski wrote:
> I've gotten things to work OK w/ the following. It means I can't have
> more than one type of directory index, but it's better than nothing.
> Thanks for the suggestions all, and Igor, thanks for nginx period :-).
For local static files nginx can try several index files.
However, there is no way to learn existent index files on remote host.
> - mike
>
> server {
> listen 80;
> root /website/htdocs;
> index index.php;
> fastcgi_index index.php;
> include /etc/nginx/fastcgi_params;
>
> location / {
> proxy_pass http://static-pool/website/htdocs/;
> }
>
> location ~ (\.php|/)$ {
> fastcgi_pass php-fcgi-pool;
> }
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list