homepage Welcome to WebmasterWorld Guest from 54.197.183.230
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Proper apache configuration from performance and security point of vie
Proper apache configuration from performance and security point of view.
redhatlab

5+ Year Member



 
Msg#: 4316663 posted 2:45 am on May 24, 2011 (gmt 0)

Hi,

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

Does it make any sense* to have Apache web server 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.

 

Frank_Rizzo

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4316663 posted 9:11 am on May 24, 2011 (gmt 0)

There will not be any performance benefit unless /home/user is located on a faster storage device than /var/www. If both are on the same disk then the performance is the same.

There could be a security benefit in that it is easier to manage / less likely to make a mistake with /home/user.

Another advantage of going with /home/user/public_html is that if you did want to host other sites later then it is easier to manage /home/user2/public_html, /home/user3/public_html.

redhatlab

5+ Year Member



 
Msg#: 4316663 posted 11:15 am on May 24, 2011 (gmt 0)

What about the fact that the apache user can not login so I will be needing to use root create and manage the site?

BTW thank you for the comment.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved