Re: Need Help on setting up a small home site.



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.
.



Relevant Pages

  • giftd and gift-setup (ports?) for Apollon
    ... Probably your giFT installation is corrupted. ... Port on which to listen for user interface connections. ... potential role on the network. ...
    (comp.os.linux.setup)
  • Re: Aysnchronous socket problem
    ... Why would it block data from the other network? ... wiaitng accepting connections on a port to it and handling them. ... the company server app is using the port as pre mentioned). ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: iMac G5 wont find network
    ... Since they are all able to use both Ethernet and AirPort connections at the same time, things can get a little confusing. ... The AirPort allows wireless client access to whatever is connected to the LAN port (say, a network printer or an Ethernet hub), its USB port and its WAN port. ...
    (comp.sys.mac.system)
  • Re: VBScript: Remote Desktop Disconnected
    ... Just one thing - there's no colon before the port with telnet - that's why ... > VBScript: Remote Desktop Disconnected ... Remote connections ... No router on my network, therefore no need to open up 4125 on router. ...
    (microsoft.public.windows.server.sbs)
  • Reproducable panic under heavy disk I/O on 5.4-latestandthegreatest
    ... the machine panics. ... commands output, the kernel config file, dmesg output and backtraces ... <RealTek internal media interface> on miibus0 ... port may not be enabled ...
    (freebsd-hackers)