SIMULATION -
Configure a HTTP server, which can be accessed through
http://station.domain40.example.com.
Please download the released page from http://ip/dir/example.html.
SIMULATION -
Configure a HTTP server, which can be accessed through
http://station.domain40.example.com.
Please download the released page from http://ip/dir/example.html.
To configure an HTTP server that can be accessed through http://station.domain40.example.com and download the released page from http://ip/dir/example.html, follow these steps: 1. Install the HTTP server using the command `# yum install -y httpd` (or `# dnf install -y httpd` if you are using a more recent version of the package manager). 2. Enable the HTTP server to start at boot using the command `# chkconfig httpd on` (or `# systemctl enable httpd`). 3. Navigate to the web server's root directory using `# cd /var/www/html`. 4. Download the example page using `# wget http://ip/dir/example.html`. 5. Rename the downloaded file to become the default index page: `# mv example.html index.html`. 6. Start the HTTP server using `# systemctl start httpd`. To configure the HTTP server to correctly serve content for the specified domain, it is also necessary to update the server configuration file at `/etc/httpd/conf/httpd.conf`. You should add the following configuration block: `<VirtualHost *:80> DocumentRoot /var/www/html/ ServerName station.domain40.example.com </VirtualHost>`. There is no need to use `NameVirtualHost` as it is deprecated in recent versions of Apache HTTP server.
This is Discontinued in rhcsa in 2021
dnf install -y httpd systemctl enable httpd cd /var/www/html wget http://ip/dir/example.html mv example.html index.html systemctl start httpd
I think it is a good idea to use #cp instead of #mv