Mobile app version of vmapp.org
Login or Join
Murray155

: Apache webserver user setup and security issues I have a server running Centos 5.6/PHP/MySQL etc that will only host one website all the time. New question Is there any security implication

@Murray155

Posted in: #Apache #Security

I have a server running Centos 5.6/PHP/MySQL etc that will only host one website all the time.

New question

Is there any security implication on leaving a single website hosted in the default location of /var/www/html/ versus the common location of /home/user/?

Original question

Does it make any sense* to have Apache webserver host the account in the home folder (/home/user) instead of the default location of /var/www/html?

*Sense mean performance benefit, security reasons, etc.

Thank you.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Murray155

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

Probably more secure to leave it over in /var/whatever. If you made it /home/user it could expose hidden files, who knows what else that might matter. If the two directories are on the same disk there shouldn't be any performance difference. [edit] Also, you might as well do it the way everyone else does it, just for consistency.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme