Re: Need Help on setting up a small home site.
- From: Tim <tim@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 2 Jul 2005 20:22:03 +0930
On 1 Jul 2005 23:37:52 -0700,
anhhung@xxxxxxxxx posted:
> How can I post my httpd.conf file content so that U can view and give
> me some advice on it.
Attach it to a message, or copy and paste it into one.
> I opened port 80 through NAT because some else
> told me that I have to open that port and forward request to my
> computer.
Yes, that's the usual thing to do. But there's several aspects to it.
If your internet connection is something like a router, then you do have to
forward connections through it. If it's just a simple modem, then the
computer is the first network device.
Some routers also have a firewall, and you need to allow incoming
connections to port 80, so that they can be routed through to something
behind it. Say specifically what model yours is so that someone can say
what you may have to do.
> This is a single computer without any Lan. How should I know
> which IP address to use?
Run /sbin/ifconfig and you can see the IP addresses associated with all
your interfaces on your computer. 192.168.x.y ones are local network
addresses. Usable within your network, but not to outsiders. However, if
you're configuring your modem/router to forward port 80 connections
through, then it's done to that internal address. Outsiders will connect
to the external IP address of your router.
> Vh is used to serve multiple websites (I know that know :)). But what
> if I want to serve only one site. I mess the <VH> directive up I don't
> know how to fix it as it is.
Then you only need the main configuration, and can remove all virtual host
directives. Hint: Avoid uncommon abbreviations, like "VH", while trying
to diagnose problems. Then we're all clear about what you're talking
about.
> So if U don't consider it rude to post a long config file here, may I do
> it, perhaps, on the next reply.
It's a common enough thing to do, and it may be the only way we work out
your problem.
> When I disabled the modem config site for outsiders, all connection to
> my computer seems to be blocked because it I, and so else, try to access
> through anhhung.dyndns.info, I got connection refused.
I've no idea what you've removed. What's "modem config site"?
Basic concept of hosting something when you're behind a modem with in-built
firewall and router, hosting "www.example.com", your current public IP
address being 192.0.34.166, and your computer's internal LAN IP address
being 192.168.1.1:
You'd allow incoming port 80 connections through the firewall.
You'd forward port 80 through to 192.168.1.1.
You'd set your dynamic IP configuration gizmo to set your *current* public
into your DNS records for www.example.com (configuring their DNS server
with your details). For now, that'd be 192.0.34.166, and your program
should automatically update the records whenever your IP changes.
You'd set your HTTP server to listen to port 80 on all interfaces (for
simplicity's sake).
You'd set your HTTP servername as www.example.com.
You'd ensure that on your system that www.example.com resolves to an IP
address that you can use. For some networks you won't be able to connect
to your public IP, so you might add www.example.com as an alias for your
LAN address in your hosts file.
e.g. 127.0.0.1 localhost.localdomain localhost www.example.com
This last step allowing you to browse your own webserver on your own
machine.
--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.
This message was sent without a virus, please delete some files yourself.
.
- Follow-Ups:
- References:
- Need Help on setting up a small home site.
- From: anhhung
- Re: Need Help on setting up a small home site.
- From: Tim
- Re: Need Help on setting up a small home site.
- From: anhhung
- Need Help on setting up a small home site.
- Prev by Date: Re: Need Help on setting up a small home site.
- Next by Date: PHP CODE CAN ONLY READ AND NOT DELETE OR INSERT BUT WHEN I LOG IN ON THE MACHINE I CAN DO DELETE AND INSERT WITH THE SAME LOG IN AND PASSWORD /...
- Previous by thread: Re: Need Help on setting up a small home site.
- Next by thread: Re: Need Help on setting up a small home site.
- Index(es):
Relevant Pages
|