Trying to figure out how to update the Zone record and configure webserver so that one application on the webserver is accessible by public. I'm completely not good at NS/DNS/NAT/firewall/routing/port forwarding/networking etc.
"faraday" is the intranet name. Everyone within local network can access all applications hosted on "faraday". Hostname for webserver is "www", FTP server is "ftpserver". Both servers running RHEL4 OS.
The goal is to allow anyone outside the company network (public) to access only one of the many applications on "faraday". Hope somebody can help me with some of the questions below, if not all.
- From zoneedit record, the static IP is used by FTP now.
- Can I use the same existing static IP - 126.96.36.199, for web service?
- Currently anyone who enter "http://www.abc.com.my" will be directed to "http://www.abc.com". I don't want this to change.
- Currently, no one else, except employee on local network, can access "faraday" web pages.
- How to configure so that when anyone type "http://thisapp.abc.com.my" on their web browser, the url will lead them to "http://faraday/thisapp" (application folder is /var/www/html/thisapp on RHEL4 web server).
- If possible, how to set the URL will continue to show "http://thisapp.abc.com.my" instead of "http://faraday/thisapp"
- How to limit/restrict user (those who are not from local network) so they only have access to "http://thisapp.abc.com.my", but not "http://faraday" or "http://faraday/anotherapp", etc.
- What's the configuration changes needed in /etc/httpd.conf on web server?
Company domain name is "abc.com.my". Following is the zone records on www.zoneedit.com.
Subdomain Type IP sdsl A 188.8.131.52 ftp CNAME sdsl.abc.com.my @ NS ns3.zoneedit.com @ NS ns7.zoneedit.com
New Domain Destination Cloaked www.abc.com.my http://www.abc.com N
On my local DNS server, there are 2 zone files: abc.com.my and pnmy.abc.com.
> cat abc.com.my.zone ftp CNAME ftp.pnmy.abc.com. sdsl A 184.108.40.206 > cat pnmy.abc.com.zone ftp CNAME ftpserver ftpserver A 172.16.5.1 faraday CNAME www www A 172.16.5.2