Greetings,
I manage to setup port forwarding using rinetd.
I have setup my linux as the webserver gateway
(running apache) and another webserver on NT
(running on IIS) When a request is made to
access pages in NT webserver, the ‘rinetd’
service will route the request to NT webserver.
For local gateway (linux) i’m using the default
port, 80. As for the remote host( NT server), i
am using port 81. What i like to achieve here is
that, to avoid users specifying port number whenaccessing URL pages in NT server. I want to have
a virtual ULR for the remote access
For an example if users want to acces pages in
Linux, they can specify www.mylinux.com and as
for accessing NT www.mynt.com. I manage to
create virtual hostname for NT server, but
somehow it did not seem to work. At client
PC, i still have to specify the URL as
www.mynt.com:81 to access the pages in NT server.
Did i miss out some setting ?
The entry in the rinetd.conf
——————————-
0.0.0.0 81 126.32.3.16 80
{126.32.3.16 is the NT server ip)
The entry in httpd.conf (/etc/httpd
———————–
Listen 80
Listen 81
NameVirtualHost 126.32.3.55:80
NameVirtualHost 126.32.3.55:81
ServerName www.webserv.com.my
DocumentRoot /usr/local/apache
ServerName www.jais.com.my
DocumentRoot /maiwp
Regards,
Uthur