You can add unlimited projects and virtual host like this way. Apache Virtual Hosts; Add the configuration for your new vhost. Here is the detailed process of setting up Apache Virtual Hosts on CentOS, broken down into simple and easy-to-follow steps: for our readers: 1.3.1: Step One-Creating a New Directory. apachectl -S. The list could be quite long so you can use less command to see the information page per page. Apache Virtual Hosts; Add the configuration for your new vhost. It accounts for more than half of all active websites on the internet and is extremely powerful and flexible. This gives us some flexibility in our hosting. First, go to the root of the C drive and create a folder named sites. Once inside it please create two new folders with the name of the website. If you followed along, you should now have a single server handling two separate domain names.. 10:35:44 [Apache] Error: Apache shutdown unexpectedly. Open this .conf file in a text editor, and add the following code to the very bottom of the file: All rights reserved. Thatâs all! Get the latest tutorials on SysAdmin and open source topics. sudo mkdir -p /var/www/test.com/publichtml
http://test.com Virtual hosting allows multiple websites to run on one Apache server. This post will walk through the steps to setting up Virtual Hosts on MAMP, although the steps are roughly the same for any server running Apache. We will start with one domain, configure it, copy it for our second domain, and then make the few further adjustments needed.