Fedora Linux Support Community & Resources Center
Old 1st March 2009, 01: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 and another (windows) server with a service on at 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:

to return the internal call from the windows machine at:

Right now, I set it up with:

RewriteEngine on                                                                                                                                               
RewriteRule ^/service/(.*)$$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
Old 3rd March 2009, 04: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

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 03:19 PM
DnsMasq as local Cache rather than Forward Cacher Server Peter_APIIT Servers & Networking 3 6th December 2007 01: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: 10:12 (Sunday, 24-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

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