2009年7月9日 星期四

Apache , virtualhost

Host websites on your local machine using Apache websever
VirtualHost Examples


ServerName indicates the name (or alias) with which your site has to be recognised. Usually a webserver will be hosting multiple sites with different domain names on the same machine. At such times, the webserver distinguishes between different websites through the ServerName directive.
you will be giving it your domain name say like www.mysite.com or something.

The DocumentRoot option denotes which files to be served when the server name is entered in the web browser. This usually points to the place where you have stored your website files.

沒有留言: