۲۷
مرداد ۹۴
http://askubuntu.com/questions/463618/setting-up-subdomain-on-ubuntu-server
https://www.digitalocean.com/community/tutorials/how-to-configure-the-apache-web-server-on-an-ubuntu-or-debian-vps
vi /etc/hosts
34.54.235.64 subdomain.mydomain.com
sudo nano /etc/apache2/sites-available/default
<VirtualHost *:80>
ServerName subdomain.mydomain.com
DocumentRoot /var/www/subdomain.mydomain.com
</VirtualHost>
Now create /var/www/subdomain.mydomain.com
and restart Apache2:
mkdir -p /var/www/subdomain.mydomain.com
sudo service apache2 restart
۹۴/۰۵/۲۷