Hello,
You can easily make a website on any (sub)domain you would like to use.
First of all you would need the website files. You can put them somewhere inside /var/www
.
In this “tutorial” we will use /var/www/sub.test.com
You also need to have your DNS records setup properly, so your subdomain redirects to your droplet.
For example:
sub.test.com. 1800 IN A 123.345.234.4
Now you can configure nginx to serve a specific website on a specific domain. Make a new configuration in nginx (rename test.com to anything that reminds you of the config):
sudo nano /etc/nginx/sites-available/sub.test.com
Inside the configuration place and edit the following:
server {
listen 80;
root /var/www/sub.test.com;
index index.html index.htm index.nginx-debian.html;
server_name sub.test.com www.sub.test.com;
location / {
try_files $uri $uri/ =404;
}
}
<^>Inside this configuration modify the following to your specific setup:
- root (your website file directory)
- server_name (your website domain)<^>
Now you need to enable the configuration, make a symlink to the enabled sites:
ln -s /etc/nginx/sites-available/sub.test.com /etc/nginx/sites-enabled/sub.test.com
Last thing to do is restart nginx:
service nginx restart
You should now be able to check the website on your subdomain.
Hope it will work, if you have any questions just ask!
It lêste webnijs yn echt
Hey there, I think your blog might be having browser compatibility issues. When I look at your blog site in Ie, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, fantastic blog!
There is obviously a bunch to know about this. I believe you made various nice points in features also.
Thanks for the tips you reveal through this blog. In addition, quite a few young women that become pregnant don’t even try and get health insurance because they have anxiety they wouldn’t qualify. Although a few states at this point require that insurers give coverage irrespective of the pre-existing conditions. Prices on these kinds of guaranteed plans are usually bigger, but when taking into consideration the high cost of health care it may be the safer route to take to protect your own financial future.
excellent work well done dear keep it up……
Thank you for some other informative blog.
Where else may I get that kind of info written in such an ideal method?
I have a mission that I’m simply now working on, and I have been at the
glance out for such info.
Great weblog here! Also your website lots up very fast!
What web host are you the usage of? Can I am getting your associate link on your host?
I desire my site loaded up as quickly as yours lol
Does your blog have a contact page? I’m having trouble locating it but, I’d like to send you an e-mail.
I’ve got some suggestions for your blog you might be interested in hearing.
Either way, great website and I look forward to seeing it grow over time.
This is a topic that is close to my heart…
Best wishes! Exactly where are your contact details though?
I do not even know the way I stopped up right here, but I believed this submit was good.
I do not realize who you’re but certainly you’re going to a famous blogger
if you happen to aren’t already. Cheers!
Today, I went to the beach front with my kids. I found a sea shell and gave it to my 4 year old daughter
and said “You can hear the ocean if you put this to your ear.” She placed the shell to her
ear and screamed. There was a hermit crab inside and
it pinched her ear. She never wants to go back!
LoL I know this is entirely off topic but I had to tell
someone!
Fascinating blog! Is your theme custom made or did you download it from somewhere?
A design like yours with a few simple adjustements would really make my blog shine.
Please let me know where you got your design. Bless you
You actually make it seem so easy with your presentation but I find this matter to be really something that I think
I would never understand. It seems too complicated and extremely broad for me.
I am looking forward for your next post, I’ll try to get the hang of it!
After looking over a few of the articles on your web site, I really appreciate your technique of writing a blog.
I saved it to my bookmark webpage list and will be checking
back in the near future. Please visit my website as well and tell me what you
think.
My coder is trying to persuade me to move to .net from PHP.
I have always disliked the idea because of the costs.
But he’s tryiong none the less. I’ve been using WordPress on numerous websites for about a
year and am nervous about switching to another platform.
I have heard very good things about blogengine.net.
Is there a way I can transfer all my wordpress content
into it? Any help would be greatly appreciated!
Can you tell us more about this? I’d love to find out more details.
Hey there! Do you use Twitter? I’d like to follow you if that would be
okay. I’m definitely enjoying your blog and look forward to
new posts.
I really like reading an article that can make people think.
Also, thanks for allowing me to comment!
I know this website offers quality based content and extra data,
is there any other web site which gives these things in quality?
Hey I know this is off topic but I was wondering if you knew of any widgets I could add to my blog that automatically tweet my newest twitter updates. I’ve been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.|