Web server question

I’m new to hosting my own webserver. I was curious and this may be an stupid question, but what location is practical and secure to for hosting on the web? /home/user/ or /var/www/html?? Because packages I download need to be in the same location as the my forum, blog.

Using Nginx 1.6 and Debian 8

In a typical Linux set-up source code for a website goes under /var/www/{vhost}.

Generally, Apache expects to find all its web page files in the /var/www/html/ directory with a generic DocumentRoot statement at the beginning of httpd.conf. You can use the /home/www directory to place them under different locations.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.