Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Special Re-direct to Win Server behind firewall 1

Status
Not open for further replies.

cdlvj

MIS
Nov 18, 2003
678
US
Running SCO apache server in DMZ
Server Version: Apache/1.3.33 (Unix) PHP/4.4.1-dev

In the office internal, have a 2k3 server running a special program to simulate web server on port 8000.

User can retrieve this page through any windows machine in network, and even on the Unix client browser.

The owner wants to access this page from outside, so I set up .htaccess on one of the and did a php header Location to redirect to the internal url.

It does actually go out and pull the stuff, but I get a page with only the <html> <body> ie a blank page.

I would think that this should work.

Any ideas?
Thanks in advance.
 
i'm not sure that would work as the redirect is an instruction to the browser.

either you have to let the browser in to the network

or you have to proxy the connection.

or you could set up the web-server to fetch the contents from the internal location (this is easy on IIS, don't know about Apache but i'd guess it's just a virtual host setup).
 
Thanks, looked into the Proxy for Apache, and got it working. Will have to figure out a way to secure the url.

I would think enabling the IIS server to use the user/pass dialog would work.
 
it works with NT authentication through IE but not other browsers. (recommend doing this over ssl, of course)

there is a company that sells (very cheap) an htaccess equivalent for IIS that I use on some servers. saves having to create an NT user for everyone to whom you want to grant access. i will dig out the name if you're interested.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top