In this case, choose Add or remove components , and then go to step 7. Replace port and ServiceName with that values that you chose during Setup. For example, the address with the default installation is:. Skip to main content. This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. If you support web applications written using ASP. NET 2 to 3.
NET 3. In Server Manager , select Dashboard , and click Add roles and features. On the Select installation type page, select Role-based or feature-based installation, and click Next.
On the Select destination server page, select Select a server from the server pool , select your server, and click Next. On the Select role services page, note the preselected role services that are installed by default, expand the Application Development node, and then select ASP. NET 4. If you installed. On the Summary of Features to Install page, confirm your selections, and then click Install. In the Add features that are required for ASP. The following additional features are added:.
On the Installation progress page, confirm that your installation of the Web Server IIS role and required role services completed successfully, and then click Close. In the Windows Features dialog box, click Internet Information Services to install the default features. The following additional features are automatically selected:. Next, use the restorecon command to apply these changes and have them persist across reboots:. The -R flag runs this command recursively, meaning it will update any existing files to use the new context.
The -v flag will print the context changes the command made. You will receive the following output confirming the changes:. You can now successfully restart the Apache service:. Now that you have your virtual host set up and SELinux permissions updated, Apache will now serve your domain name. This confirms that your virtual host is successfully configured and serving content.
Repeat Steps 4 and 5 to create new virtual hosts with SELinux permissions for additional domains. In this tutorial, you installed and managed the Apache web server. Now that you have your web server installed, you have many options for the type of content you can serve and the technologies you can use to create a richer experience.
Where would you like to share this to? Twitter Reddit Hacker News Facebook. Share link Tutorial share link. Sign Up. DigitalOcean home. Community Control Panel. Hacktoberfest Contribute to Open Source. Not using CentOS 8? Choose a different version or distribution. CentOS 8. In this guide, you will install an Apache web server with virtual hosts on your CentOS 8 server. Prerequisites You will need the following to complete this guide: A non-root user with sudo privileges configured on your server, set up by following the initial server setup guide for CentOS 8.
Ensure that a basic firewall is configured by following Step 4 of the Initial Server Setup with CentOS 8 recommended in the above guide. As the non-root sudo user configured in the prerequisites, install the Apache package: sudo dnf install httpd After confirming the installation, dnf will install Apache and all required dependencies.
Step 2 — Checking your Web Server Apache does not automatically start on CentOS once the installation completes, so you will need to start the Apache process manually: sudo systemctl start httpd Verify that the service is running with the following command: sudo systemctl status httpd You will receive an active status when the service is running: Output.
About the authors. Haley Mills. Erin Glass. Still looking for an answer?
0コメント