Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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
3  
It depends entirely on the local configuration; ask your hosting provider. –  Insyte Mar 29 '10 at 21:28

2 Answers 2

up vote 6 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
3  
I think he means symbolic link. –  Ninefingers 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

 
discard

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.