I've Googled, and Googled, and Googled, and Googled some more, but the answers never seem to be the same or work. Here is my setup: SMC8013WG-CCR Router - I cannot change this. I REALLY wish I could. CentOS 4.4 Server - BIND9, Apache2, Shorewall Windows PC - HFS (HTTP Fileserver) The SMC router provides internet access to another department in our organization. My CentOS server also acts as a router, seperating my network from the other department's network, and is the DMZ host in the SMC router configuration. We have a top-level domain name, which I'll refer to as domain.com in this thread. I use DNS Park for nameservers. A co-worker has a Windows PC on which he runs HFS, and HTTP-based file server. He shares files needed by other people in the company, which is spread throughout the US. Port forwarding is not an option, as both of our servers need to listen on port 80. The company has its own internet connection, which our department does not use, and the company blocks all outgoing ports except for what is needed. They don't even allow port 8080. This means people at other locations cannot access our servers if they are not on port 80, and they need to be. I want to access my server, www.domain.com, on port 80 from outside. I also want to access the subdomain, sub-domain.domain.com (the Windows PC) on port 80 from outside. I seem to find lots of information regarding this, but nothing seems to work. I would be EXTREMELY grateful is someone could give me some direction on how to accomplish this. It has been a frustrating week trying to do this. lol Thank you, Chris
Sorry, I'm not quite following your setup. Could you maybe do a graphic on what is connected to where on which ports/domains?
Can't you just use the dns server on the centOS server to route all traffic for subdomain.domain.com to the windows server?
I have an entry for the windows server in the CentOS dns configuration, but it only works for the LAN. Chris
You can direct both domains to your CentOS box, and for one of them you use Apache's reverse proxy feature to retrieve data from the Wondows box: http://httpd.apache.org/docs/2.0/mod/mod_proxy.html http://www.apachetutor.org/admin/reverseproxies http://www.howtoforge.com/forums/showthread.php?t=7299&highlight=reverse+proxy
I figured it out. I have one problem remaining, though. Here are my virtual host entries: Code: <VirtualHost *:80> ServerAdmin [email protected] ServerName www.domain.net ServerAlias domain.net www.domain.net </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] ServerName sub.domain.net ServerAlias sub.domain.net ProxyPass / http://172.16.1.20/ ProxyPassReverse / http://172.16.1.20/ </VirtualHost> I had specified Code: <VirtualHost 10.1.10.210:80> before, but everything works now that I changed it. The examples I tried to follow used the IP address of the "net-connected" interface. Now here is the new problem. The Windows 98 server is serving pages just fine, but the software (HFS - http://www.rejetto.com/hfs/) serves images in the following format: Code: http://sub.domain.net/~img27 The only problems I'm having are with the images, and they are the only items that are preceeded with the tilde. I get the 404 error from the Windows 98 server if I try to access an image directly with my web browser. That tells me that the requests are at least getting to the 98 server. Thanks for all your help! Chris
Maybe you need to add an Alias directive to your sub.domain.net vhost so that the requests are mapped to the correct directory on the Windows system? Maybe mod_rewrite might also help you: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
It appears that the images are built into the HFS executable. There is no installation directory for the program. My co-worker is running it from his desktop. I guess option 1 is out. I'm looking into option 2 now. The strange thing is that it works great on the LAN, just not the internet. Chris