Solved DocumentRoot on apache

What directory do people use on apache for DocumentRoot?

I'm think about various applications such as Wordpress.

Some examples I've seen use /usr/local/www/wordpress others use /usr/local/www/apache24/data/wordpress.

I realise both will work, but wondered which most people used.
 
Don't use /usr/local/www/apache24/data, that's all I can say. It's where Apache's default "It works" website lives, leave that as-is. Same for /usr/local/www/nginx/ with nginx.

I like /usr/local/www/<mywebsite>/, for example /usr/local/www/example.com/, keeps everything nice and separated. It's also independent of the web server being used.
 
Back
Top