logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Reverse Proxy URL rewrite
Author
phil7269



Joined: 18 Jul 2015
Posts: 7
Location: USA

PostPosted: Tue 28 Jul '15 23:49    Post subject: Reverse Proxy URL rewrite Reply with quote

I'm new to apache so thank you for taking the time to help. This is the issue I am trying to resolve.

We currently have a Windows 2003 server running Microsoft ISA 2006 as a reverse proxy for one of our web apps. The web application that ISA is proxying for responds with the URL of http://hostname/.... which is the netbios name, not the FQDN. The ISA server is able to rewrite the netbios name into a FQDN.

How do I configure Apache to rewrite a netbios name into a FQDN using Reverse Proxy? here are some examples of the URLS in use:

FQDN: http://docimamge.somedomain.com/....
NetBios: http://sqlapps/.....

Any help is greatly appreciated.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 29 Jul '15 10:45    Post subject: Reply with quote

Welcome to httpd apache!

For each domain you need a virtual host (vhost)

Code:
<VirtualHost *:80>
    ServerName docimamge.somedomain.com
    # the SeverAlias is optional
    ServerAlias www.docimamge.somedomain.com
    #that folder has to exist, but can be empty
    DocumentRoot "C:/htdocs"
    <Directory "C:/htdocs">
        Options Indexes Includes FollowSymLinks
        AllowOverride None
        Require all granted
    </Directory>
    <Location />
        ProxyPass http://sqlapps/
        ProxyPassReverse http://sqlapps/
    </Location>
</virtualhost>
Back to top


Reply to topic   Topic: Reverse Proxy URL rewrite View previous topic :: View next topic
Post new topic   Forum Index -> Apache