arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can I use a sub domain on VPS
#13
Well here is a small tutorial

Add these lines on your apache configuration file.

<VirtualHost *:80>
    ServerName subdomain.example.com
    DocumentRoot /var/www/subdomain.example.com
</VirtualHost>

Now create your directory for the subdomain

mkdir -p /var/www/subdomain.example.com

Last Step restart your apache server

sudo service apache2 restart

You can repeat the same steps for each subdomain you want.


Messages In This Thread
Can I use a sub domain on VPS - by meetdilip - 08-14-2016, 07:59 PM
RE: Can I use a sub domain on VPS - by Conan - 08-14-2016, 10:34 PM
RE: Can I use a sub domain on VPS - by TrK - 08-15-2016, 09:15 AM
RE: Can I use a sub domain on VPS - by meetdilip - 08-15-2016, 10:55 AM
RE: Can I use a sub domain on VPS - by perry - 08-18-2016, 01:10 PM
RE: Can I use a sub domain on VPS - by meetdilip - 08-18-2016, 01:12 PM
RE: Can I use a sub domain on VPS - by perry - 08-18-2016, 01:14 PM
RE: Can I use a sub domain on VPS - by Anik - 08-19-2016, 09:17 AM
RE: Can I use a sub domain on VPS - by meetdilip - 08-19-2016, 12:28 PM
RE: Can I use a sub domain on VPS - by Anik - 08-20-2016, 12:16 PM
RE: Can I use a sub domain on VPS - by qchost - 08-24-2016, 04:14 AM
RE: Can I use a sub domain on VPS - by TrK - 08-24-2016, 06:45 AM
RE: Can I use a sub domain on VPS - by xdude - 08-31-2016, 04:53 AM
RE: Can I use a sub domain on VPS - by Anik - 08-24-2016, 09:42 AM
RE: Can I use a sub domain on VPS - by TrK - 08-31-2016, 02:27 PM

Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
3,619
06-22-2018, 07:19 PM
Last Post: sagher

person_pin_circle Users browsing this thread: 2 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting