LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-24-2004, 11:33 AM   #1
peevee
LQ Newbie
 
Registered: Sep 2003
Location: india
Distribution: redhat
Posts: 18

Rep: Reputation: 0
how to make my computer avilable on internet as webserver


i installed apache as web server ,
but now i want to make my computer as webserver over net.
how to make it,....
I use internet in lan,
my ip in lan is 10.13.147.7,
my gateway is 10.13.147.1.
and i use primary dns as 202.144.115.4
and secondary dns is 202.144.66.6
now how to make my pc online
thanq
 
Old 10-24-2004, 11:47 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
People need to know how to find your webserver, eg.. http://my.web.server.in or http://my.ip.number.in

This means registering either a domain name or just using it's internet ip number.

Your gateway will need to be told to forward (DNAT) port 80 to your server 10.13.147.7

Your apache config file will need to have either your domain name or ip number in the NameVirtualHost value. When the server starts it will try to find a dns server that validates the domain name or ip number, so you can put it in /etc/hosts

More instructions are on the LQ Wiki.. http://wiki.linuxquestions.org/wiki/Apache
 
Old 10-24-2004, 12:32 PM   #3
stuart1946
LQ Newbie
 
Registered: Oct 2004
Location: west coast of Canada
Distribution: mandrake 9.2
Posts: 25

Rep: Reputation: 15
I found it to be a bit easier than that, but this may be a special case.

I have a cable modem which allows multiple ip addresses. The modem plugs into a hub, then each computer on the hub gets an ip address from the modem. So, my server has a direct connection to the outside. Run ifconfig to get your internet ip address, then the world can get at your machine by http://xxx.xxx.xxx.xxx You do not need a domain name yet. This address will change over time, but the reality is that the service providers change these very rarely. I have had the same ip address for 6 months.
When you are ready, buy and register a domain name, then find a dns service that allows dynamic dns, so you can change where the name points to when your provider changes your ip address.

If you are allowed only one ip, then set up a router, open the 'dmz' to point to the local address of the server machine, or open port 80 to point to the local machine. at 192.168.0.xxx. Then you find your ip address from the router, and proceed as above.

Stuart
 
  


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
how i can make connect to internet through another computer ibrhaidar Linux - Networking 2 12-25-2004 11:41 AM
Internet is slower on my win computer than on my linux computer eXor Linux - Networking 1 12-03-2004 08:58 AM
Trying to access my webserver from a different computer. cpv204 Linux - Newbie 6 12-13-2003 12:05 PM
How to set up my computer as a webserver bcarl314 Linux - Newbie 4 11-02-2003 09:05 AM
how to make linux as webserver and other windows as clients for browsing the internet halovivek Linux - Networking 3 09-01-2003 10:29 AM

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

All times are GMT -5. The time now is 08:24 AM.

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