From the recent crazy effort of myself and help from the community, see previous posts(here), I have reach the conditions where I am quite sure that I be able to access the web server through the internet. This is what I have done:
Set the static ip at /etc/network/interfaces
auth eth0 ...inet static address .... netmask ... gateway ...
Set the /etc/hosts
127.0.0.1 localhost [static_ip] web-server
Set the /etc/resolv.conf to include my dns
nameserver [dns-ip-primary] nameserver [dns-ip-secondary] search web-server
For your information, using the static IP the university gave me, I could do this in the server.
- ping the default gateway
- ping google via ip
- ping google via address
- access any website using lynx (text-based browser)
Problem But still, with these setup, I could not accessed my website via the internet but only via the local network.
I still does not know what I have miss, please guide me!