views:

239

answers:

2

My internet sites are at the folder

public_html

I noted that www/ seems to have a symbolic link to public_html.

I do not know why we need the www/ -folder, when we have public_html. Perhaps, it is a security reason. Perhaps, the name of the folder where websites are should be hidden.

Why does www/ -folder point to the folder public_html by default?

+1  A: 

Difference Between The "public_html" and "www" In Linux

Amin Amini
Thank you for the link!
Masi
+3  A: 

$HOME/public_html is convention for user dirs, while $HOME/www/domain is typical convention for user domains in shared hosting. Having symlink you don't have to worry which one you use.

vartec
You still do have to worry though. Cookies for example. I think it's best to redirect from www
Joe Philllips
@d03boy: File structure does not mean web structure.
Samuel
Oh right, I guess I didn't read this comment.
Joe Philllips
Yes, www is just a shortcut for public_html. The web hoster will configure the web server to serve up public_html to www.yourdomain.com and yourdomain.com by default.
Samuel
Thank you for the link!
Masi