Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

What's the difference between the www & public_html folder on the same server on my shared linux hosting. I've seen data is same on both of these folders. Is one of them just a redirect or is the data getting replicated. What is the purpose of 2 folders or even a redirect folder?

Thanks in advance! :)

share|improve this question
It depends entirely on the local configuration; ask your hosting provider. – Insyte Mar 29 '10 at 21:28
up vote 5 down vote accepted

The primary difference would be a preference between naming conventions and how your hosting service configured it. I have typically used public_html for user directories and often www for system-wide but that's more a personal convention.

In all likelihood, there is no difference but we can't speak for an arbitrary configuration.

share|improve this answer

Usually the www folder is simply a symbolic link of public_html.

share|improve this answer
A mirror? What, using more disk-space? That seems highly unlikely. – Phil P Mar 29 '10 at 23:31
I think he means symbolic link. – user32616 Mar 30 '10 at 0:30
My mistake, typing quickly without thinking. Everyone makes mistakes. More like "mirrors" - ie same content, not literally. – djs596 Mar 30 '10 at 15:10

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.