Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Mar 28, 2015 10:21 am 
Offline
Newbie

Joined: Fri Mar 27, 2015 9:04 pm
Posts: 2
I'm new to hosting. I walked thru the "Hosting a Website tutorial" and I have read thru much documentation.

I installed LAMP. I updated /etc/apache2/apache2.conf. I created /etc/apache2/sites-available/mydomain.com.conf. I created the /var/www/mydomain/public_html,log,backups directories. I ran a2ensite. I put a index.html file in the public_hosts directory and set the permissions.

When I enter the IP address for my site hosted on Linode, I get the following:

Index of /
Name Last modified Size Description
________________________________
________________________________
Apache/2.2.22(Ubuntu) Server at my IP Port 80

Sorry for what I am sure is a dumb question.


Top
   
PostPosted: Sat Mar 28, 2015 1:18 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
You need to setup a DNS entry for a domain name, and then USE that domain name instead of just a IP. The IP will always result in the holding page.

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


Top
   
PostPosted: Sat Mar 28, 2015 7:26 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
To expand slightly: requests coming into the IP address will be handled by the first VirtualHost configured. This is probably "000-default" serving out of /var/www/html. Try running a2dissite 000-default to disable it.

Note that the first enabled site configuration, sorted by the configuration file name, will be the one that responds to requests coming to the bare IP address. If multiple sites are on the same server, I usually name them "001-primarysite.org," "002-secondarysite.org," etc. so that the main site will be the one that people land on in such a case.


Top
   
PostPosted: Sun Mar 29, 2015 11:41 am 
Offline
Newbie

Joined: Fri Mar 27, 2015 9:04 pm
Posts: 2
Thank you for the help. I'll try to minimize the rookie mistakes. I did get it to work. It was DNS issues. happened to be spelling errors that I should have caught earlier, especially when I did reverse DNS setup. Just didn't know what to expect. Anyway, Thanks to both replies.


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


Who is online

Users browsing this forum: No registered users and 2 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