0

How do I use whitespace in mu virtual host file "sites-available" and "sites-enabled"?

I'm currently trying:

/var/www/My\ Dropbox/public_html/

and it is not working.

Kevin
  • 301
  • 1
  • 3
  • 12

2 Answers2

3

Adding quotation marks ought to do it.

"/var/www/My Dropbox/public_html/"

Johanna Larsson
  • 190
  • 1
  • 9
1

I'm guessing you mean for your DocumentRoot (and not for the domain name)? Put it in quote marks, eg: "/var/www/My Dropbox/public_html".

James L
  • 6,025
  • 1
  • 22
  • 26