Is there anything inherently wrong with putting HTML files in the internet-facing public folder?
Is there security issues with this approach? Can’t you just view source anyways?
Do we have our views outside the public folder purely for templating purposes?
I’d appreciate your thoughts on this.
Thanks!
Matt
HTML files are usually put in the public directory. The directory is named differently in different setups. Some people name it
public_html. Some name it justpublic. Some name itwww. There is nothing wrong with putting the HTML files there.You should just make sure that nobody other than you has write permissions on the folder as a general security measure. If you are serving CGI scripts, or if you have sensitive data (say a configuration file for your website which users are not supposed to see), they should be kept outside the public directory.