I'm trying to host two different websites in the same VPS. What are the correct procedures for doing this?
The apache
server is already installed and I can host files there. But I can not host two different websites.
My httpd.conf
has the following:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin primeiro_site@primeiro_site.com
DocumentRoot /var/www/primeiro_site/public_html
ServerName www.endereco1.com
ServerAlias endereco1.com
ErrorLog /var/www/primeiro_site/error.log
</VirtualHost>
<VirtualHost *:800>
ServerAdmin [email protected]
DocumentRoot /var/www/segundo_site/public_html
ServerName www.endereco2.com
ServerAlias endereco2.com
ErrorLog /var/www/segundo_site/error.log
</VirtualHost>
But both addresses redirect to the folder of site 1
...