502 Bad Gateway error

Yesterday I was configuring WordPress and Jetpack when I got a 502 Bad Gateway error error from Nginx.

It’s simple enough to fix but I’ve not used Nginx too much, here’s the problem and solution…

When you’re using Nginx as a reverse proxy to Apache sometimes the upstream server can send headers too big to fit in the Nginx buffer. We’re using Plesk Control Panel on our server, so I’m not sure if it’s to do with the defaults set for Nginx within that but to fix it do the following.

Open /etc/nginx/nginx.conf in your favourite editor

Add the following inside the http directive:

proxy_buffers 8 32k;
proxy_buffer_size 64k;

Save it, restart Nginx and Apache, ta da!

Your mileage may vary so play about with the number of buffers and their sizes.

Borscht – Beetroot soup with feta recipe

A friend gave me some home grown beetroot so I decided to make a bit of Borscht, or beetroot soup!

Ingredients – Makes enough for 3-4

600g (3-4 large beets), peeled and grated coarsely

500g (around 5-6) of ripe tomatoes, halved (I suppose if you’re really lazy you could use a tin of chopped tomatoes)

2 cloves of garlic, roughly chopped

1 medium onion, peeled and chopped

A bit of olive oil

500ml of vegetable stock (I used 2 ‘Knorr Stock Pots’)

Freshly ground black pepper

Some feta cheese

Method

Place the halved tomatoes in an oven dish, pour a little olive oil over the top of them and throw on the chopped garlic.

Place in the oven at 190C (I’ve got a fan oven) until they’re soft, it took me about 30 minutes.

Place the tomatoes in a sieve and rub through into a bowl to remove the skins and pips.

Put a little more oil in a pan and sweat the onion with a twist of black pepper.

Add the stock and beetroot, give it all a stir and bring to the boil for about 10 minutes or until the beetroot is tender.

Stir in the tomato purée.

Using either a stick blender or a normal blender process the soup until completely smooth. If you’ve got white walls take care, it’s easy to spray the soup all over if you’re using a stick blender!

Transfer the soup to warmed bowls and crumble a little of the feta cheese on top.

Serve with crusty bread!

You might also want to…

  • Add a shot of vodka
  • Chill in the fridge and serve cold

Coronation butter beans recipe

A Coronation Chicken alternative for veggies, pretty damn tasty!

Coronation Butter Beans
Coronation Butter Beans

Ingredients – Makes about enough for 8 people to dip into at a party!

4 tins of good quality butter beans, drained

1 large tablespoon of mango chutney

2 large tablespoons of Greek yogurt

2 large tablespoons of good mayonnaise

1 large tablespoon of madras curry powder (hot)

A sprinkling of flaked almonds

1 large carrot, peeled and grated

1 small red onion, thinly sliced

A handful of chopped coriander

You might also want…

Flat bread, pitas or naan

Method

Place the mango chutney, Greek yogurt, mayonnaise and curry powder in a large bowl, mix until combined.

Taste the mix to see if it’s to your liking, add a bit more curry powder if you like!

Add the butter beans and flaked almonds, stir until coated.

If you’re ready to serve now, then carry on, if you’ve got a few hours, cover and place in the fridge for the flavours to get into the butter beans.

Transfer the mixture to a serving dish, sprinkle on the grated carrot, sliced red onion and grated coriander.

Serve with flat bread, pitas or naan!

Peanut butter triple chocolate brownie recipe

I made this chocolate brownie (without the peanut butter) to give as Christmas presents to friends last year. It’s gooey and incredible, the peanut butter gives it a lovely taste and crunch!

Ingredients

250g of unsalted butter
300g of good dark chocolate
135g of plain flour
60g of cocoa powder
150g of good white chocolate, chopped into small pieces
150g of good milk chocolate, chopped into small pieces
A large handful of milk chocolate drops
6 medium free range eggs
410g of caster sugar
A jar of good crunchy peanut butter (Meridian brand if you can get it)

Method

Cut up the butter and chop the dark chocolate into chunks, add them both to a heavy pan and melt slowly over a low heat. Use the bain marie method if you can be bothered. When melted, leave to cool.

Sieve the flour and cocoa into a bowl and set to one side.

Break the eggs into another bowl, add the caster sugar and beat with an electric mixer until the mix has doubled in size. If you lift the beaters from the mix and it leaves a trail for a few seconds, it’s done!

Pour the cooled chocolate over the eggs and sugar. Gently fold it in to avoid knocking all the air out of the mixture.

Hold the sieve over the eggy chocolate mixture and re-sieve the flour and cocoa into it, gently fold it into the mixture to avoid knocking more air out.

Add the chopped white and milk chocolate to the mix and stir in.

Line a 3cm high brownie tray with baking parchment and pour in the mixture, ease it in to the corners and smooth out the top.

Place dots of peanut butter on top of the mix (I did half with peanut butter and half without) then sprinkle the chocolate drops on top.

You don’t have to add peanut butter, why not try chopped nuts or chocolate orange segments?

Place the tray in the oven at 175C (I’ve got a fan oven) for 30 minutes.

Leave to cool, cut up into chunks!