LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-31-2006, 12:45 PM   #1
armchair rambo
Member
 
Registered: Aug 2006
Location: minneapolis
Distribution: Fedora
Posts: 32

Rep: Reputation: 0
Red face making apache site public


New to linux and liking it a lot. I want to make a test web site visible to the outside world -- how is it done?

Here's the details

I have a static IP (let's say 1.2.3.4) and it is assigned to my gateway, giving me an always-on connection for the Internet. I have registered the static IP at the Qwest web site with my site's name (widgets123.com)

What now? I have looked for tutorials, found none. How do I start serving up pages to the outside world?

thanks
 
Old 08-31-2006, 12:59 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
right, so that's the other part of the question. if apache is already running and you can see it locally, then you just need to do some port forwarding. ipcop handles this very well but if you are just using a hardware adsl modem, check out portforward.com for very specific guides on this.
 
Old 08-31-2006, 01:57 PM   #3
armchair rambo
Member
 
Registered: Aug 2006
Location: minneapolis
Distribution: Fedora
Posts: 32

Original Poster
Rep: Reputation: 0
How do I know if I can see it locally? http: //localhost/ in a browser?

Don't I need to change a hosts file or something?
 
Old 08-31-2006, 02:56 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
no i just mean go to http://192.168.0.5 or something from a locally connected machine.
 
Old 08-31-2006, 03:53 PM   #5
blackraider
LQ Newbie
 
Registered: Apr 2006
Location: Dark Side of Linux
Distribution: Gentoo AMD64
Posts: 6

Rep: Reputation: 0
I've assume that you had already registered your domain name in any domain server.

You should configure your httpd.conf file (in /etc/apache/ dir) for enable Apache to accept http request and forward port 80 in your firewall to accept connections.

First setup the ServerName parameter with the name of your domain.
Then give the folder in wich you main site will reside through DocumentRoot parameter.
Finally open the port 80.


Hope this helps
 
Old 09-01-2006, 10:23 AM   #6
armchair rambo
Member
 
Registered: Aug 2006
Location: minneapolis
Distribution: Fedora
Posts: 32

Original Poster
Rep: Reputation: 0
port 80

right now I have not configured any firewall, but it is turned on. Let me see if this is right: by "turn on" port 80 do you mean enable the HTTP service?

What do i need to do to forward port 80?
 
Old 09-01-2006, 11:42 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
i've already pointed you towards portforward.com
 
  


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
Using LGPL icons on public site slackaddict General 2 03-12-2006 05:55 PM
Making a website public IanThePetRock Linux - General 33 08-01-2005 02:41 PM
Config registar DNS to point to my public IP for web site vdi_nenna Linux - Networking 3 11-23-2004 07:41 AM
Making a public samba share joncolby Linux - Software 0 06-24-2004 01:02 PM
Making zip drive public phatboyz Linux - Hardware 3 03-02-2004 03:58 AM

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

All times are GMT -5. The time now is 10:28 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