El lun, 09-06-2008 a las 00:38 -0700, Neo Anderson escribió: 
> I have two pages (JSP, PHP). One page is at port 8080, one is at 80.
> When I am sending Ajax request from PHP to JSP or JSP to PHP, I am
> getting Permission denied error. I know we cannot send Ajax requests
> to other sites.
> But I want to know, how can I achieve this as I need it.

you could set up a proxy pass in your apache, so you'd have something
like this:
PHP site: http://www.example.com/
JSP site: http://www.exmaple.com:8080/

you would get something like this:

JSP SITE: http://www.example.com/jsp/
PHP site: http://www.example.com:8080/php/

so you could access any of them from the same domain.

http://httpd.apache.org/docs/1.3/mod/mod_proxy.html

cheers!

-- 
Javier Infante <[EMAIL PROTECTED]>
Irontec

Reply via email to