Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to implement a Virtual host on AWS Linux Server?

We already created a Linux server using Xampp. But we have 3-4 websites that we have to live there. But in xampp we live only one website in the root folder.
We are thinking about a Virtual host.
Below of our code:

On httpd.conf file:

Include conf/extra/httpd-vhosts.conf

We need help for setup httpd-vhosts.conf file.
What we will code there?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I think you need to update your httpd-vhosts.conf file link that:

<VirtualHost *:80>
ServerAdmin webmaster@localhost.com
DocumentRoot <PATH_TO_PROJECT_DIRECTORY_HERE>
ServerName <SERVER_NAME like local.pos.com>
ServerAlias <WWW.SERVER_NAME local.pos.com>
</VirtualHost>

Be careful, it will need for every website if the website is not running on the root folder.
Also, you have to restart your server, for active this service.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading