Changes

Jump to: navigation, search

Configuring a Fedora Linux Based Web Server

76 bytes added, 20:01, 27 October 2016
m
Text replacement - "<table border="0" cellspacing="0">" to "<table border="0" cellspacing="0" width="100%">"
<hr>
<htmlet>fedora</htmlet>
In this chapter we will explain how to configure a Fedora Linux system to act as a web server.
== Testing the Web Server ==
Once the installation is complete the next step is to verify the web server is up and running. To do this fire up the web browser by clicking on the Firefox logo in the top desktop panel and enter ''127.0.0.1'' in the address bar (127.0.0.1 is the loop-back network address which tells the system to connect to the local machine). The browser should load the ''Fedora Test Page''.
Congratulations, you have now installed the web server and served up what will hopefully be the first of many web pages.
== Configuring the Apache Web Server for Your Domain ==
The next step in setting up your web server is to configure it for your domain name. This is performed in the ''/etc/httpd '' directory. To configure the web server open a terminal windows window and change directory to /etc/httpd. In this directory you will find a number of sub-directories. Change directory into conf sub-directory where you will find an 'httpd.conf' file which contains the configuration settings for the Apache server.
Edit the httpd.conf file using your favorite editor using the su command to ensure you have write permission to the file. Once loaded, there are a number of settings which that need to be changed to match your environment:
The ''ServerAdmin'' directive defines an administrative email address for people wishing to contact the web master webmaster for your site. Change this to an appropriate email address where you can be contacted:
<pre>
== Web Server and Firewall Issues ==
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>If your Fedora Linux system is configured to use a firewall, you will need to ensure that HTTP traffic on port 80 is permitted in order for external system systems to be able to access your web server. Refer to the [[Basic Fedora Linux Firewall Configuration]] and [[Using Firestarter to Configure a Fedora Linux Firewall]] chapters of this book for details on configuring Fedora Linux Firewalls.
If the Fedora Linux system hosting your web server sits on a network protected by a firewall (either another computer running a firewall, or a router or wireless base station containing built in firewall protection) you will need to configure the firewall to forward port 80 to your web server system. The mechanism for performing this differs between firewalls and devices so check your documentation to find out how to configure port forwarding.
Once everything is configured it should be possible to enter the domain name of your web site into a browser anywhere in the world and access your web server.
 
<htmlet>fedora</htmlet>

Navigation menu