Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to move a website from /var/www/WebSite to /media/Backed Websites/Website. I can't make nginx recognise the "Backed Website" directory. Tried with quotes, with the \,but no success. Any idea? Is this even possible?

share|improve this question
up vote 8 down vote accepted

It is possible. We can't use \, though. Single and double quotes are expected to work, especially on root directive. So, you could try single quotes.

BTW, which version of Nginx are you using?

share|improve this answer
1.1.14 Quoting the whole path seems to work. – Gabriel A. Zorrilla Feb 20 '12 at 21:53
Glad to know it works! – Pothi Feb 21 '12 at 1:56
i cannot get this to work, hmm – bobmoff Apr 3 '14 at 9:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.