RE: [users@httpd] Windows, Apache and an ASP Module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Arthur Guy [mailto:arthur@xxxxxxxxxxxxxxxxxxxx]
> Sent: Donnerstag, 23. Juni 2005 13:30
> To: users@xxxxxxxxxxxxxxxx
> Subject: RE: [users@httpd] Windows, Apache and an ASP Module
> 
> 
> I really need to build the entire website again in php but I 
> don't have the
> time, any additions can be in php and I will slowly migrate 
> the site over.

Probably the wisest course..

> 
> I installed the proxy and proxy httm module in apache and set it up to
> forward requests, this seems to work well although I imagine 
> it is fording
> all the requests. 

Check in the logs to see...

> Is there anyway to define the directory where the site is stored as a
> virtual host and only get it to proxy asp pages back?

Set up apache and IIS with the same docroot. Apache is listening to the internet address and IIS is listening only on an internal IP (eg 192.168.1.1). So only apache can request from IIS.

Now in apache do something like:

DocumentRoot /home/site/html
<FilesMatch *.asp>
  ProxyPass / http://192.168.1.1/
</FilesMatch>

So if you get a request http://internet-ip/foo/bar.html, it will be served by apache from /home/site/html/foo/bar.html.

If you get a request for http://internet-ip/foo/wibble.asp, it will be proxied internally and apache will request http://192.168.1.1/foo/wibble.asp (ie, from IIS) and pass the response back to the client.

Depending on how compilcated your setup is, you might find it worth moving it all to mod_rewrite (in proxy mode), eg.

RewriteRule (.*\.asp) http://192.168.1.1/$1 [P]

which does the same thing in one line.

Check out the docs for these directives for details and post back if there's anything that's not clear.

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


> 
> Thanks
> Arthur
>  
> arthur@xxxxxxxxxxxxxxxxxxxx
> 
> > -----Original Message-----
> > From: Arthur Guy [mailto:arthur@xxxxxxxxxxxxxxxxxxxx]
> > Sent: Dienstag, 21. Juni 2005 16:42
> > To: users@xxxxxxxxxxxxxxxx
> > Subject: RE: [users@httpd] Windows, Apache and an ASP Module
> > 
> > 
> 
> > I guess I will have to stick to IIS or as Owen Boyle 
> suggested forward
> > requests from apache to IIS.
> 
> >It depends on what your motivation is for migrating. If it's 
> because you
> >want want to take advantage of apache's stabilty and robustness, then
> >using apache as a frontend and proxying any ASP requests to 
> an internal
> I>IS server probably a good solution. The IIS server will be 
> behind the
> >apache server and so will never see the direct requests from 
> the internet
> >and so will be insulated from all those IIS exploits. It 
> also won't have to
> >spend time delivering GIFs and static content and will be able to
> >concentrate just on the ASPs.
> 
> >Rgds,
> >Owen Boyle
> >Disclaimer: Any disclaimer attached to this message may be ignored. 
> 
> 
> 
> 
> 
> 
> 'a star solutions' disclaimer
> The information transmitted is intended only for the person 
> or entity to which it is addressed and may contain 
> confidential and/or privileged material. 
> If you are not the intended recipient of this message you are 
> hereby notified that any use, review, retransmission, 
> dissemination, distribution, reproduction or any action taken 
> in reliance upon this message is prohibited.
> If you received this in error, please contact the sender and 
> delete the material from any computer. 
> Any views expressed in this message are those of the 
> individual sender and may not necessarily reflect the views 
> of the company.
> We believe that this communication is free from viruses and 
> other potentially dangerous programmes, but the recipient 
> opens this communication at their own risk. 
> We assume no responsibility for any loss or damage arising 
> from the receipt or use of this communication
> 
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux