Author |
|
Jeremy777
Joined: 16 Mar 2006 Posts: 3 Location: Ottawa
|
Posted: Thu 16 Mar '06 22:55 Post subject: IIS proxy to Apache webserver |
|
|
Hi All,
Im wondering if anyone can advise on the following issue..
I have an Apache 2x (win32) webserver on a machiene on our LAN.
In order to reach the apache server, http requests from WAN are directed through an IIS proxy.
This seems to work fine for simple html pages and also php generated pages. However Im having troubles getting WAN http access to function properly with a somwhat more complicated application (a web map server, "Mapserver") that is being served up by the Apache server. Access to the mapserver and eveything else works fine from within the LAN.
Can anyone tell me if there are any configuration issues I should be considering in this senario? Or any other issues that would be relavant to such a set up?
Thanks
Jeremy |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Fri 17 Mar '06 10:47 Post subject: |
|
|
Normaly you can leave the configuration as it is. Only if you have specificated an IP you have to change it to the IP from the ISP or just don't set an IP
e.g.
Code: |
#for an static IP
Listen 80.134.45.28:80
#set IP dynamic. This is the best solution only to set the Port
Listen 80
|
If you run PHP Apps users can access set in PHP.ini the open_basedir to the webroot i.e. C:/apache/htdocs so that users can't access the normal file system with PHP. |
|
Back to top |
|
Jeremy777
Joined: 16 Mar 2006 Posts: 3 Location: Ottawa
|
Posted: Fri 17 Mar '06 22:28 Post subject: |
|
|
Thanks for the reply,
I have the IP set as dynamic. But it still chokes....
ANy futher thoughts?
Thanks
Jeremy |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sun 19 Mar '06 13:24 Post subject: |
|
|
HostnameLookups Off This means the apache has not to resolve the IP adress to a name. Makes requests faster.
UseCanonicalName Off so the Apache uses the URL from the client, not from the given name. |
|
Back to top |
|
Jeremy777
Joined: 16 Mar 2006 Posts: 3 Location: Ottawa
|
Posted: Mon 20 Mar '06 16:15 Post subject: |
|
|
Hi, Thanks again for the suggestion ... I have tried both of those and still no results. to further clarify my situation:
The part of my page that is not working is an image that is generated 'on-the-fly' by the mapserver. This image is called by a url such as http://myserver/cgi-bin/mapserver.exe?map=themapfile&status=on
I notice that when Im not behind my LAN, I cant reach the cgi-bin dir. I have created an alias for cgi-bin but it doesnt seem to work. Is there somthing in the apache conf file I should look at?
Thanks
Jeremy |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 20 Mar '06 20:30 Post subject: |
|
|
Give the viruall (alias) directority free?
ScriptAlias /cgi-bin/ path/to/cgi-bin/
<Directory "/path/to/cgi-bin">
Options Indexes MultiViews +ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory> |
|
Back to top |
|