<---- template headericclude ----->
[APACHE] forward? directory or subdomain to local IP (for ajax?)
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    zackiv31 Guest

    [APACHE] forward? directory or subdomain to local IP (for ajax?)

    I'm opening up a specific service on my hosted apache site that I want to forward to another local machine. I'm testing in house right now, but still heed it to work

    Let's say I have my main web server on IP 192.168.0.200 and another (windows) server with a service on at 192.168.0.201. I'm running ajax requests to the linux machine to give me the results from the windows machine. How is this possible? I don't know the best way to do it, with directory or a subdomain, but which is the best way?

    So I want to make an ajax request to:

    http://192.68.0.200/service/

    to return the internal call from the windows machine at:

    http://192.168.0.200/windowsservice/

    Right now, I set it up with:

    Code:
    RewriteEngine on                                                                                                                                               
    RewriteRule ^/service/(.*)$ http://192.168.0.201:/windowsservice/$1 [R,L]
    The problem with this, is the ajax call returns a 302 telling me to call another domain, but I want this request to automatically propogate.

  2. #2
    Join Date
    Jun 2005
    Location
    Mission Control
    Posts
    1,227
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take out the R in the '[R,L]' - it tells the browser it's redirecting, removing it should make it a silent redirect.

Similar Threads

  1. Apache and local Directory
    By Min in forum Using Fedora
    Replies: 1
    Last Post: 28th July 2009, 11:05 AM
  2. How do I forward local mail to gmail?
    By hondaman in forum Using Fedora
    Replies: 6
    Last Post: 18th January 2008, 03:19 PM
  3. DnsMasq as local Cache rather than Forward Cacher Server
    By Peter_APIIT in forum Servers & Networking
    Replies: 3
    Last Post: 6th December 2007, 01:29 PM
  4. apache: subdomain for all my domains using virtualhost?
    By evasion81 in forum Servers & Networking
    Replies: 1
    Last Post: 2nd July 2005, 05:00 AM
  5. Firewall: local slow - forward from internal net fine
    By micattack in forum Servers & Networking
    Replies: 0
    Last Post: 20th May 2005, 10:47 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
[[template footer(Guest)]]