Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Mar 13, 2010 9:38 am 
Offline
Senior Member

Joined: Thu Mar 11, 2010 1:09 pm
Posts: 62
Hi, I'm trying to add my second domain to my linode, but I just can't do it.

I'm following this guide http://library.linode.com/lamp-guides/u ... 10-karmic/ and my first domain is working fine.

I suspect the problem could be related to adding site to /etc/apache2/sites-available/ directory. When I add another site (I'm using Putty and nano), and when I look at the file on server with Filezilla, I see that it is saved as ms-dos application.

For my first domain, file is saved like mydomain.org, but it seems like every time I add a new domain that has a .com extension it is becoming a ms-dos application, not just a file.

If I add a file with .net or else, it's fine, but .com always become ms-dos aplication.

Could this be my problem or is it something else why I can not add another domain? (btw. I changed name servers with my domain registrar, but it was not working, so I swithed them back to my current hosting, till I solve this issue. And yes, I run the "a2ensite" command after adding the second domain ).

Thanks!


Top
   
 Post subject:
PostPosted: Sat Mar 13, 2010 9:47 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
nano doesn't do weird things like that. Most likely Filezille is just making a stupid assumption because of the ".com" file extension.

When you say it doesn't work, what exactly do you mean?


Top
   
 Post subject:
PostPosted: Sat Mar 13, 2010 9:48 am 
Offline
Senior Member

Joined: Mon Feb 28, 2005 7:21 pm
Posts: 76
Filezilla is just trying to be helpful and tell you what that extension means--on Windows, not on your linode.

I think you can name the site configurations whatever you want, but using the domain name is great.

Before you make any DNS changes (but after enabling the site and reloading apache), the quick way to test the site is to see what you get:

Code:
telnet <IP> 80

GET / HTTP/1.0
Host: www.yourdomain.com


Edit: then press return TWICE.

Hope that helps!


Top
   
 Post subject:
PostPosted: Sat Mar 13, 2010 10:03 am 
Offline
Senior Member

Joined: Thu Mar 11, 2010 1:09 pm
Posts: 62
mnordhoff wrote:
nano doesn't do weird things like that. Most likely Filezille is just making a stupid assumption because of the ".com" file extension.?


That souds true, probably thats the answer to my "ms-dos" problem.

mnordhoff wrote:
When you say it doesn't work, what exactly do you mean?


Well, I changed name servers with my domain name registar, and my site is not showing. Instead, I get a page with a lot of adds.

I know about 24h propagination, but no way that any site is showing adds all that time. I changed many name servers in my life, swithing hosting and all, but this can't be right.

Besides, for my first domain, when I prepared everything on linode, and when I changed name servers, only couple of minutes later, my site was working on new hosting (linode) and it was all fine.

"Before you make any DNS changes (but after enabling the site and reloading apache), the quick way to test the site is to see what you get:

Code:
telnet <IP> 80

GET / HTTP/1.0
Host: www.yourdomain.com"

where do I type this, in ssh command line (using Putty)?

Thanks for helping me out, really appreciate!


Top
   
 Post subject:
PostPosted: Sat Mar 13, 2010 10:16 am 
Offline
Senior Member

Joined: Mon Feb 28, 2005 7:21 pm
Posts: 76
AndrijaM wrote:
Well, I changed name servers with my domain name registar, and my site is not showing. Instead, I get a page with a lot of adds.


Are you switching to Linode's DNS? Or just changing IPs in the registrar's DNS? The ad page is probably the registrar's own parking page.

AndrijaM wrote:
where do I type this, in ssh command line (using Putty)?


From a cmd window on your PC, or the ssh command line on your linode. Replace <IP> with the IP the site is on. At least if you do this and see the HTML you expect in return, you'll know it's just a DNS problem :)


Top
   
 Post subject:
PostPosted: Sat Mar 13, 2010 10:21 am 
Offline
Senior Member

Joined: Thu Mar 11, 2010 1:09 pm
Posts: 62
I'm swithcing to Linode's DNS. Yes, the page is probably the registrars parking page.

Thanks, I just did everything again, made a file in sites-available, did a2ensite, restarted apache, and changed swithced my domain to Linode dns. So will see what will happened...


Top
   
 Post subject:
PostPosted: Sat Mar 13, 2010 10:53 am 
Offline
Senior Member

Joined: Thu Mar 11, 2010 1:09 pm
Posts: 62
Solved :)
It must have been that I made some mistake :oops: , don't know what, but now when I did everything from begining again, it works!
Thank you all!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group