Forum OpenACS Q&A: setting up my machine to serve pages

I've just set up OpenAcs, Aol Server, PostgreSQL on a machine
running Mandrake 8.1
Everything works fine when using the localhost settings 127.0.0.1.
Now I want to make the pages accessible from outside.
I am in a bit of a confusion on how to this properly.
when i type as root: ip address, I get this:

**********

1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo

2: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP> mtu 1500 qdisc pfifo_fast
qlen 3
    link/ppp
    inet 217.39.168.208 peer 217.32.65.203/32 scope global ppp0

****************

Basically for now, I will be happy to get the index page, by typing
the ip address in the browser.

is my ip address 217.39.168.208 ?
I've tried to replace the 127.0.0.1 in my nsd.tcl file, but it
hasn't worked.
Can you help?

Thanks

Collapse
Posted by Pavel Boghita on
I managed to get it working in apache, but not with aolserver.
Collapse
3: update on above (response to 1)
Posted by Pavel Boghita on
I have managed to get aolserver to serve pages on
http://217.39.20.102:8000. When I type this it automatically goes to
http://home.bradut.com:8000. So far so good... by the book.
The domain name I have bradut.com is registered with a company in
UK, easily.co.uk, which does email and web forwarding. At the moment
the web is forwarded to http://web.ukonline.co.uk/bradut.

New problem is that pages, cannot be seen outside the local machine
it typing http://[some ip address], .
Also does anyone know what shall I do, so that queries for
www.bradut.com, point to to my local machine? So, although I am not
sure how to expres this, how do I set my machine to be the host for
my www.bradut.com domain.... is that right?

Thnaks for any replies,

Collapse
Posted by Antonio Laterza on
in nsd.tcl
set hostname 'your public domain name'
set address 'your public ip address'
you have to ensure that nslook up 'your public domain name' return 'your public ip address'
Collapse
Posted by Antonio Laterza on
You have more alternative:

If you have a dynamic ip address then is better to use the services provided by: www.dyndns.org

If you have a static ip address then you can/should manage the DNS entry, using free services from www.granitecanyon.com and adding information in 'whois' database about your new DNS.
I hope this can help you.
Collapse
Posted by Pavel Boghita on
Thanks Antonio.
I really want to get the pages on my local machine seen outside, when typing the ip address. I think I need to understand how this works, before I can worry about the name translation issue (and yes, I have looked through other threads on this issue... the ones that appear in my searches anyway..😉

Ok, my ip address today is 217.39.20.107 - I am at work away from local machine -  tried to ping it from work, it timed out.
When typing http://217.39.20.107:8000 it times out, but the entry transforms itself to http://www.bradut.com:8000. Does this mean that the request reaches the server ? Why can't I see anything then in the browser?

my nsd.tcl setting are

set hostname    www.bradut.com

set address      my ip address

Is there a problem because I use the port 8000?... should I be using port 80?

Also when I have tried nslookup for my hostname it times out, but I guess this could be a different issue than the one that occupies me at the moment... accessing my test page, by typing the ip address.

Collapse
Posted by Pavel Boghita on
sorry ip address... is still the same ...217.39.20.102
Collapse
Posted by Antonio Laterza on
try to comment:
#set hostname www.bradut.com
and restart nsd
Collapse
Posted by Antonio Laterza on
nslookup 217.39.20.107
give:
Name: host217-39-20-107.in-addr.btopenworld.com
then you should use that name :)
Collapse
Posted by Pavel Boghita on
Thanks Antonio,

I am not sure what that really means... the reply to nslookup.
Still I have modified the setting in nsd.tcl file from port 8000 to
port 80.
On my browser on my local machine everything works well... I am
waiting to find out from a friend when he gets the time to check
both http://217.39.20.102 and http://www.bradut.com
I am a bit in the dark of how all this naming and ip-ing works...
but I start to understand some of it.
I found a site that http://www.undernic.net - you can put your
domain on their name servers, which I've listed in my DNS look-up
records... I shall know in a few days how all this works (while my
current provider also updates their records...that I moved from
their name servers...)
Anyway at least I can now play quite well with the modules on my
local machine and start learning stuff.

Thanks Antonio for your help

Collapse
Posted by Pavel Boghita on
"The requested URL could not be retrieved
while trying to retrieve the URL: http://localhost.bradut.com:8000/ "

this is what I am getting on an external machine when putting
http://[my_ip_address]:8000 in the browser. (which means that the
address is resolved ...isn't it?)

(Again all works well in my local machine....connection wise)

I've set up localhost.bradut.com as my hostname+domain name in my
local machine.
Also localhost.bradut.com is pointing to my [ip address] in etc/hosts

Is there some security setting in aolserver that doesn't allow
anyone from outside to see the pages served? My nsd.tcl is exactly
the default one, unmodified following the rpm installation.

I have tried running apache (while stopping aolserver and postgre),
and that works fine on external machines, which leads me to believe
is a aolserver config issue.....pls, help...;)

thanks

Collapse
Posted by Antonio Laterza on
ok Paul, To be visible on internet you have to:
  • use your external address:(217.39.20.102, you can see this using ifconfig)
  • using nslookup www.braudt.com must be related to 217.39.20.102.
For example yesterday situation would work with follow setting:
set hostname host217-39-20-102.in-addr.btopenworld.com
set address 217.39.20.102
To test if your configuration work, you can try:
  • telnet 212.39.20.102 8000
where 8000 is your port.
If that works, than you must wait the DNS name propagation.
Bye
Collapse
Posted by Pavel Boghita on
Thanks Antonio, but how come this is not a problem in Apache
?...i.e. can see http://localhost.bradut.com  when apache is
running? where localhost.bradut.com is the localhost + domain name
as set up on the local machine.
Collapse
Posted by Antonio Laterza on
I don't know why, probably apache run on all interfaces and use your /etc/hosts and /etc/resolv.conf
Collapse
Posted by Pavel Boghita on
well, it does work with the hostname set to the output for nslookup 217.39.6.180... I am at work now and I can see http://217.39.6.180
Thanks for your help Antonio.... I am still baffled by why in apache people could use www.bradut.com and see the index page.... but I shall consider this to be a secondary problem for now. I'll probably return with TCL specific questions from now...😉