tags:

views:

795

answers:

3

I want to run an Apache on my local machine since I can only ssh into my server thru ajaxterm (webbased ssh client) which is a pain in the neck. Now my problem is, that I am running this server and have to send the traffic thru the companies proxy which also has user authentication with password. I have a .pac file so if I can tell Apache to use that and enter my password and username somewhere that would be great.

Edit:

I would also want to have a redirect ProxyPass /ajax http://website.com
ProxyPassReverse /ajax http://website.com

+1  A: 

I'm not sure I understand the question correctly, so let me rephrase :

  • You have an Apache Server running on you local machine
  • You normally use a Proxy to connect to the internet
  • This proxy has a .pac config file
  • You want to access your local Apache Server from the Internet
  • I didnt understand what SSH and AjaxTerm do in this picture.

First, this doesnt look like a programming question, so you are probably better asking it on the Apache mailing list. That said, there is probably some misconceptions. The proxy you use to access the internet is what we could call a "forward proxy", it handles the traffic going from a client inside your company to a server outside of your company.

What you need is a "reverse proxy", which handles the traffic from a client outside of your company to a server inside of it. (Note that both functions can be configured on the same proxy - a proxy can be at the same time a reverse proxy and a forward proxy).

The .pac file that you have is a way to configure your browser to go through the proxy to go to the internet. What you need is to configure the proxy to forward traffic to your webserver. This configuration will not be done in your local Apache server, but on the proxy itself. So you'll have to talk with the administrator of this proxy ...

Guillaume
Okay I guess I will not be able to get files via fopen (php function) inside my local apache server.
Thomaschaaf
A: 

I think his problem is : * He has an Apache Server running on you local machine * He normally uses a Proxy to connect to the internet * This proxy has a .pac config file * He wants his apache be able to access the internet through the proxy

I have the same problem. I'm still looking ...

A: 

Yes i've an Apache Server behind a proxy server and I need use some WebServices with PHP and I need my php connect to the internet using a proxy.

Mike