658 Part V . Running Servers The DocumentRoot (Web hosting isp)
658 Part V . Running Servers The DocumentRoot specifies where the Web documents for this site are stored. If you plan to have more than one site per user, you will need to modify this layout appropriately. Replace username with the name of the account that is administrating the Web site. For this example, each Web site is required to be administered by a different user account. The User and Group lines are used by suexec to determine which account to run scripts as. The groupname parameter should be changed to username s primary group. In most modern installations, this is the same as the username. These two lines must be left out if you aren t using suexec. When you are done, use apachectl to check the configuration and then do a graceful restart: # apachectl configtest Syntax OK # apachectl graceful Unless you have already created it, you will receive a warning about public_html not existing. Run mkdir ~/public_html as the user that owns the Web site in order to create it. Additional virtual hosts can be added by repeating the VirtualHost block and repeating the configuration test (configtest) and reload (graceful) steps. You may want to place individual virtual hosts in separate files for convenience. However, you should be careful to keep your primary virtual host in a file that will be read before the others because the first virtual host receives requests for site names that don t match any in your configuration. In a commercial Web-hosting environment, it is common to make a special default virtual host that contains an error message indicating that no site by that name has been configured. User Content and the UserDir Setting In situations in which you do not have the ability to set up a virtual host for every user that you want to provide Web space for, you can easily make use of the mod_userdir module in Apache. With this module enabled (which it is by default), the public_html directory under every user s home directory is available to the Web at http://servername/~username/. For example, a user named wtucker on www.example.com stores Web content in /home/wtucker/public_html. That content would be available from http://www.example.com/~wtucker. Note Note
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.