Fedora Linux Support Community & Resources Center
  #1  
Old 1st March 2009, 12:44 AM
zackiv31 Offline
Registered User
 
Join Date: Apr 2006
Posts: 248
[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.
Reply With Quote
  #2  
Old 3rd March 2009, 03:39 AM
savage Offline
Registered User
 
Join Date: Jun 2005
Location: Mission Control
Posts: 1,229
Take out the R in the '[R,L]' - it tells the browser it's redirecting, removing it should make it a silent redirect.
Reply With Quote
Reply

Tags
ajax, apache, directory, forward, local, subdomain

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


Current GMT-time: 11:58 (Saturday, 20-09-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat