bailoo / itrack

Location Tracking for Everyone
3 stars 2 forks source link

Problem in virtual hosting #23

Closed rizcompeer closed 9 years ago

rizcompeer commented 9 years ago

Domain name : sales.imobisolution.com

Facing the problem while configuring the domain name sales@imobisolution.com with the current ip 52.74.144.159. Please check what is missing -

Steps taken : 1.ssh ubuntu@52.74.144.159 -i VTSKeyPair.pem

  1. ubuntu@ip-10-0-0-19: cd /etc/apache2/sites-available
  2. created a file salesupl.conf at location - ubuntu@ip-10-0-0-19:/etc/apache2/sites-available$ sudo vi salesupl.conf

File content :

<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/html/upl ServerName sales.imobisolution.com ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined

<Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all

4.sudo service apache2 reload

On hitting : sales.imobisolution.com Message coming - Not Found The requested URL / was not found on this server.

bailoo commented 9 years ago

Why do you want to map a new domain name to 52.74.144.159? This is the VTS server of Singapore region which we will leave soon.

Instead, map it to new IP 52.3.186.189 of our new VTS server in US East.

What is missing that you have to run a2ensite to enable the configuration for a new site.

bailoo commented 9 years ago

https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts