LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-24-2012, 04:13 AM   #1
koslibpro
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
Exclamation Problem with ubuntu VPS - not showing the websites


Hello everyone,

I just rent an Ubuntu VPS and started transfering my files via sFTP from the shared host i used till now to host my 5 websites.

Thus i logged in to my domain registrar panel to change the NameServers,i transfered the files to my VPS and from the DNS manager of my VPS company,i added an A record for each website.
Of course i had already set the httpd.conf apache file and made it look like this>>
<VirtualHost *:80>
ServerName mysite.com
DocumentRoot /var/www/mysite.com
</VirtualHost>
<VirtualHost *:80>
ServerName www.mysite.com
DocumentRoot /var/www/mysite.com
</VirtualHost>

But now,about a day later,none of my websites is appearing online!All appear to be offline!

Have i made anything wrong?Do i have to do something more to get them back online?

Thank you in advance
 
Old 07-25-2012, 10:16 AM   #2
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Double check the IP of your VPS. Run nslookup on your domains and compare to VPS IP to ensure that the DNS is properly pointing to the correct IP.

Code:
nslookup www.yourdomain.com
If all of the DNS information is correct then run nmap against your domain to scan for open ports.

Code:
nmap www.yourdomain.com
IF NO ports listening from nmap command.
Check which interface httpd is listening on with the netstat command.

Code:
netstat -nlp | grep 'httpd\|apache'
If you're running a firewall (you should be) then check the firewall settings to ensure that desired ports are allowed.

IF PORTS ARE listening from nmap command.
Check if the service listening is HTTP 1.1 using telnet and openssl (for the case of ports 80 and 443).

Code:
#for port 80 plain text http
telnet www.yourdomain.com 80
GET /

#for port 443 https
openssl s_client -connect www.yourdomain.com:443
GET /
Do those steps in order and please report back your results. We'll try to go from there once the situation is more properly assessed.

SAM
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
psql and PGPASSWORD and a little php - AWS vps - Ubuntu dcdon Linux - Software 3 08-17-2011 06:28 PM
ubuntu vps change time evry 5 min !!! papampi Linux - Server 2 06-06-2011 05:23 AM
Ubuntu VPS as VNC? ian_byc Linux - Server 0 02-19-2009 10:14 AM
Logging into email websites problem, Ubuntu Linux tfm1 Linux - Software 2 07-02-2006 04:29 PM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration