Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#286319 - 03/09/2006 22:14 Any Apache experts here?
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
I have Apache running on our main server inside a LAN behind a hardware firewall. Port 80 is forwarded through to it. It has a number of virtual servers etc all running locally on it using the ServerName directive.

I now want to run a company website locally. Problem is that it's ASP based and it looks like Apache can't really handle that - if it could, that would probably be the favoured solution.

So I really need to run IIS. I can't really run it on port 80 locally since it will mess the other services up.

What I need is to run IIS on another port and redirect any requests for www.company.com to that port OR run IIS on another machine and redirect port 80 and www.company.com through to it. I can't use the simple Redirect method since it requires the second server to be visible. I want everything to go through the current webserver and port and be invisibly (to the outside) redirected.

I can't seem to find what I want in the Apache documentation.

Any ideas?
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
#286320 - 03/09/2006 22:27 Re: Any Apache experts here? [Re: Shonky]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5914
Loc: Wivenhoe, Essex, UK
I have never had to do it myself, but you should be able to achieve want you want using the proxy module:

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

These look like they might be useful as well:

http://www.apacheweek.com/features/reverseproxies
http://confluence.atlassian.com/display/DOC/Using+Apache+with+mod_proxy
http://webauth.stanford.edu/manual/mod/mod_proxy.html


Edited by andy (03/09/2006 22:33)
_________________________
Remind me to change my signature to something more interesting someday

Top
#286321 - 04/09/2006 11:31 Re: Any Apache experts here? [Re: andy]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
Yeah thanks. The ProxyPass directive in mod_proxy seems to have done the trick for me. Was looking for the wrong thing I think.

I now find the website also needs MSSQL server as well for no real apparent reason

Top
#286322 - 04/09/2006 11:46 Re: Any Apache experts here? [Re: Shonky]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14479
Loc: Canada
Quote:

I now find the website also needs MSSQL server as well for no real apparent reason


Ahhh.. what good would be a secure Apache-based server without a MSSQL backdoor sieve?

Top
#286323 - 06/09/2006 08:22 Re: Any Apache experts here? [Re: mlord]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
Quote:
Quote:

I now find the website also needs MSSQL server as well for no real apparent reason


Ahhh.. what good would be a secure Apache-based server without a MSSQL backdoor sieve?

A damn site simpler to get going that's for sure.

The logging is no help and it's just giving me "internal server error 500" now on the .asp pages... regular HTML is fine though. Yuck, yuck and the "database" looks like a full bodge and doesn't seem necessary for the website really. Apparently we paid a lot of money for this rubbish.
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
#286324 - 06/09/2006 11:31 Re: Any Apache experts here? [Re: Shonky]
andy
carpal tunnel

Registered: 10/06/1999
Posts: 5914
Loc: Wivenhoe, Essex, UK
Are you using Win2k3 Server ? In which case have you enabled ASP ?

IIS in Win2k3 ships in a more secure state than earlier versions. Out of the box it will only serve static content.

http://www.visualwin.com/ASP/

If not, is there anything in the event log ?


Edited by andy (06/09/2006 11:32)
_________________________
Remind me to change my signature to something more interesting someday

Top
#286325 - 06/09/2006 22:06 Re: Any Apache experts here? [Re: andy]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
Quote:
Are you using Win2k3 Server ? In which case have you enabled ASP ?

IIS in Win2k3 ships in a more secure state than earlier versions. Out of the box it will only serve static content.

http://www.visualwin.com/ASP/

If not, is there anything in the event log ?


ASP is definitely working as verified with a test .asp file I found. Event logs occasionally show:

Quote:
Error: The Template Persistent Cache initialization failed for Application Pool 'DefaultAppPool' because of the following error: Could not create a Disk Cache Sub-directory for the Application Pool. The data may have additional error codes..

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


with the source as "Active Server Pages" though. I'm thinking that must be the problem. The errors don't appear regularly. Just every now and then.
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top