The Apache Web Server check it for errors after you make changes to it. To do this, you use the configtest option: # service httpd configtest Syntax OK Testing the Apache Web Server Once you’ve started the Apache web server, you should test it to see if it’s working properly. To do that, we’ll use a web browser to request a web page from our server! There’s a page provided by default for this purpose, and you can request it via the URL http://localhost. So, launch a web browser (Main Menu | Internet | Mozilla Web Browser), and type this URL into the address box: Configuring your Web Server It’s a good idea to configure your web server. Red Hat does provide a GUI tool, apacheconf, for configuring Apache, but it does not format the configuration file very well. Webmin (http://www.webmin.com – see Chapter 13) is an alternative web-based software that can be used to manage most of the Linux services, including the Apache web server. However, in this section we’ll show you how to do some basic configuration by editing the httpd.conf Apache configuration file directly. Try it Out: Configuring Your Web Server We’re going to configure the web server by adjusting a couple of the settings to suit our needs. 1. Launch the gedit text editor (by selecting Main Menu | Accessories | Text Editor), or your favorite text editor. Use it to open the file /etc/httpd/conf/httpd.conf. 2. Select Search | Find and use the resulting dialog to find the word ServerAdmin in the file. The first occurrence should be the ServerAdmin directive, which looks like this: # ServerAdmin: Your server address, where problems with the server should be # e-mailed. This address appears on some server-generated pages, such # as error documents. e.g. admin@your-domain.com ServerAdmin root@localhost As you can see, the configuration file describes this directive very well. Change the email address to your own email address, or an address that you may have set up for web site administration. For example: 275
Note: If you are looking for top 10 and very good webhost to host and run your jsp application check Actions jsp hosting services