LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2008, 11:14 AM   #1
ddzc
Member
 
Registered: Oct 2003
Location: T.O
Distribution: SunOS 10
Posts: 97

Rep: Reputation: 15
Running a server/site from home


I'm attempting to load a site from home to the public. The site is functioning on the home network with apache.

I just need to setup the forwarding from the outside..i can probably take care of the firewall redirect but i'm not sure how to push the hostname b/c you need a nameserver. I did a reverse DNS on my public I.P and got the DNS name and attempted to use it as my nameserver but its being refused when I attempt to add it (im with namecheap). It doesn't take I.P's.. Is this the correct way? Any suggestions from ppl running sites from home?

Thanks
 
Old 05-27-2008, 11:33 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
I'm not exactly sure what you've done but it doesn't sound right.

Do you have a registered domain that you can use?

Unless your running a dns server on your machine, and it sounds like your not then you do not want to give your IP as the nameserver. Using namecheap's nameserver will be fine, simply add an A record to point your domain and any subdomains to your public IP. namecheap's control panel should have the functionality to accomplish this task.
 
Old 05-27-2008, 03:07 PM   #3
theofb
LQ Newbie
 
Registered: Apr 2007
Location: OH
Distribution: Slack
Posts: 16

Rep: Reputation: 0
this is the most helpful tutorial I've seen for DNS.

http://www.howtoforge.com/traditional_dns_howto

whether you host your own dns or not, it's worth reading.

unfortunately I have godaddy and they won't let you use their name servers if they don't host. I ended up going with xname.org but there may be more reliable freebies out there.
 
Old 05-27-2008, 03:14 PM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
I would use no-ip, dyndns or a similar service with a Dynamic DNS Client on your PC..
 
Old 05-27-2008, 03:35 PM   #5
ddzc
Member
 
Registered: Oct 2003
Location: T.O
Distribution: SunOS 10
Posts: 97

Original Poster
Rep: Reputation: 15
Excellent, I knew I was doing this wrong. Thanks a lot everyone.
 
Old 07-08-2008, 02:38 PM   #6
ddzc
Member
 
Registered: Oct 2003
Location: T.O
Distribution: SunOS 10
Posts: 97

Original Poster
Rep: Reputation: 15
Hi everyone,

I got this working OK with namecheaps dns. Just wondering, how would I run two websites (2 seperate domain names) on the same box? I'm running apache as the web server app.

Thanks

Last edited by ddzc; 07-08-2008 at 02:40 PM.
 
Old 07-08-2008, 02:44 PM   #7
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
You would need namecheaps to give you another domain name or any other DNS provider, and then if i was you look into virtualhosts with apache. This enables you to run several different websites all from the same host and apache server. Its not to difficult to set-up but does require some ground work. Just look at on google for apache virtual hosts.

simple:-
http://httpd.apache.org/docs/2.0/vhosts/examples.html

Your probably better off reading more about it from here first though.
http://httpd.apache.org/docs/2.0/vhosts/

Last edited by helptonewbie; 07-08-2008 at 02:51 PM.
 
Old 07-08-2008, 02:57 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Aside from the technical details, be advised that many ISPs do not allow you to host a website, server, etc. (regardless of how you handle DNS.)
 
Old 07-08-2008, 09:47 PM   #9
ddzc
Member
 
Registered: Oct 2003
Location: T.O
Distribution: SunOS 10
Posts: 97

Original Poster
Rep: Reputation: 15
thanks a lot
 
Old 07-09-2008, 12:14 PM   #10
theofb
LQ Newbie
 
Registered: Apr 2007
Location: OH
Distribution: Slack
Posts: 16

Rep: Reputation: 0
Quote:
Originally Posted by pixellany View Post
Aside from the technical details, be advised that many ISPs do not allow you to host a website, server, etc. (regardless of how you handle DNS.)
They will tell you that, especially if you don't pay for a static address. But for argument sake, how can they prevent it?
 
Old 07-09-2008, 04:13 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by theofb View Post
They will tell you that, especially if you don't pay for a static address. But for argument sake, how can they prevent it?
The ISP has terms of service. If you don't follow them, they can stop the service--or maybe charge you more money.

Can you get away with violating the terms of service? Maybe--at least for a while.
 
Old 07-09-2008, 05:34 PM   #12
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
As far as I'm concerned, an ISP should not block anything. Why should they care if you are running a server or whatever.

If your ISP does block or limit certain protocols, then change

--Ian
 
Old 07-10-2008, 02:52 PM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
It's all about marketing and pricing strategy. The logic for the ISP would simply be the level of service versus the price. At the low end, what they typically offer is a basic connection for browsing, e-mail, etc. They have no obligation to allow you to do something that goes beyond what they are agreeing to provide.

As long as there is no monopoly, then there is nothing wrong with an ISP setting any policy they want.
 
Old 07-15-2008, 10:56 PM   #14
theofb
LQ Newbie
 
Registered: Apr 2007
Location: OH
Distribution: Slack
Posts: 16

Rep: Reputation: 0
curiosity crashed the site

i guess the point I was trying to make is there is nothing they can do without subverting the protocols.

Now I'm curious...guess I'll go check out my terms of service.
 
Old 07-15-2008, 11:18 PM   #15
fordwrench
LQ Newbie
 
Registered: Nov 2006
Location: Cleveland, Tx
Distribution: debian,freebsd,slackware, and ubuntu
Posts: 15

Rep: Reputation: 1
If you have a dedicated machine to run your sites then follow this howto: http://www.howtoforge.com/perfect_setup_debian_etch


There are also other great tutorials on the howtoforge website also.


This will get your machine setup with debian etch 4.0 and ispconfig to host your sites... the use no-ip or dyndns to point your domains to the ip your machine is at...

You will have to do some router configuration also to forward the proper ports.

Fordwrench
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Running CentOS at home and RHEL on the server JeffCT24 Red Hat 5 01-19-2008 07:13 PM
running a home server , what security measures should i take firedancer Linux - Security 20 10-30-2007 10:02 AM
Running a Home Server ddzc Linux - Newbie 3 07-21-2005 04:56 PM
Home Network Setup Help Linux Server running Windoze XP clients + ADSL router BeaverusIV Linux - Networking 10 04-22-2005 05:07 PM
How do I install Fedora on my comp running WinXP Pro, WinXP Home and Win2000 Server pureheartedsoul Linux - Newbie 3 03-30-2004 03:45 PM


All times are GMT -5. The time now is 05:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration