Command 1 :
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/subdomin.equaltrue.com.conf
Command 2 :
sudo nano /etc/apache2/sites-available/organic.strativ-support.se.conf
Replace with this Content :
<VirtualHost *:80>
ServerAdmin admin@equaltrue.com
ServerName subdomin.equaltrue.com
ServerAlias www.subdomin.equaltrue.com
DocumentRoot /home/ubuntu/public_html/magento
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Enable the New Virtual Host Files
sudo a2ensite subdomin.equaltrue.com.conf
After this, if the site comes then it’s okay, if not then you need to change a little.
on nano /etc/apache2/apache2.conf
<Directory ‘your setup directory’>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
In my Case my ‘your setup directory’ is /home/ubuntu/public_html/magento
Ref : https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts
Leave A Comment?
You must be logged in to post a comment.