Prepare the Web Server for the Local Repository
Before setting up your local repository, you must properly configure an HTTP web server, on which you will create the repositories.
Prerequisites
You must have met the following requirements.
Selected an existing server that is accessible from all hosts in your clusters.
Enabled HTTP access from all hosts in your cluster to the mirror server (the server on which you are mirroring the repositories).
After meeting these requirements, you can prepare your local repository.
Steps
Create an HTTP server:
On the mirror server, install an HTTP server (such as Apache httpd) using the instructions provided on the Apache community website.
Activate the server.
Ensure that any firewall settings allow inbound HTTP access from your cluster nodes to your mirror server.
Note If you are using Amazon EC2, make sure that SELinux is disabled.
On your mirror server, create a directory for your web server.
mkdir -p /var/www/html/
Optional: If you are using a symlink, enable the
followsymlinks
on your web server.
Next Steps
You next must set up your local repository.
More Information