Setting up an FTP Server


Beginning Red Hat Linux – Apache Test Page

This is the first page of your web site!

3. Now open a browser and browse to the page using your server’s FQDN address or IP address. (For example, I’m using the URL http://test.linux4biz.net/index.html below to match my DNS name, but you might use something like http://192.168.0.99/index.html.) Your browser will send this request to the web server listening for connections on port 80 by default. Web server will serve the default web site pages. The following screenshot shows the output you should see: How it works In this example, we set up a simple web page under Apache web server’s default root directory, /var/www/html, and tested it on an internal network. You can add more pages and directories under the /var/www/html directory as explained in the previous example. If you want to make your web site available on the Internet, then you’d need to connect your web server to the Internet and assign it a public IP address, so that external users send page requests to it. You can also register a DNS so that your website as a memorable name (so users don’t need to refer to your web site by its IP address!). By default, your Apache web server hosts just one web site (whose root is at /var/www/html). However, you can configure your Apache web server to host as many web sites as you like, and specify the root directory of each site to be whatever folder you wish. If you want more information about acquiring and using Apache, try http://httpd.apache.org/, or Professional Apache 2.0 and Professional Apache Security. Setting up an FTP Server If you want to enable other users to download files from a location on your server’s hard disk, and/or to upload files to that location, then one solution is to install an FTP server. You can think of an FTP server essentially as an area of disk space that is used for storing files, plus the software and configuration required to allow 277
Quick Hint: If you are looking for best quality webspace to host and run your tomcat application check Vision tomcat hosting services