Forum Moderators: phranque

Message Too Old, No Replies

ASP and .htaccess, is it possible?

I can't get no satisfaction...

         

argent

12:07 am on Jun 17, 2005 (gmt 0)

10+ Year Member



I have a newby question. I have been trying to search everywhere to find an answer but to no avail.

Can I serve an ASP page, through an Apache server?...

I have hosting which is IIS, and its all great and suuuper easy with ASP...BUT I just love the funky Apache directory capabilities....

so, I decided to dabble in all that malarkie and now have a linux account tooo.

My question is basically can I serve up an ASP page which is on another server through a nicly formatted web address given by my linux account?

so instead of seeing:
www.myASPsite.com/something/file.asp

they see:
www.myPHPsite.com/whatever/whatever

but are actually looking at the html given and already processed by the other server?

jdMorgan

12:23 am on Jun 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



argent,

Welcome to WebmasterWorld!

> My question is basically can I serve up an ASP page which is on another server through a nicly formatted web address given by my linux account?

Sure, see Apache mod_proxy [httpd.apache.org]. If you define the php URL-path as being proxied to your asp server, this will work automagically. Just be aware that the requests for the asp page will pass *through* the php server in both directions, and from the asp server's point of view, these requests will always appear to be originating at the php server. You can probably set an X-Forwarded-For header in these requests if this is a security or tracking/logging problem.

Jim

argent

8:26 pm on Jun 23, 2005 (gmt 0)

10+ Year Member



Thanks for that super fast reply jdmorgan!

I got all excited trying to work out the Apache mod_proxy functions when I found out that I need to have access to some file my isp won't let me touch.

Is there another way using just the .htaccess file?

thanks