Use Apache for Proxy

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

Edit:

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

0


source to share


1 answer


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

  • You have an Apache server running on your local machine.
  • You usually 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 didn't understand what SSH and AjaxTerm are doing in this picture.

First, it doesn't seem like a programming question, so you'd probably better ask it on the Apache mailing list . However, there are probably some misconceptions. The proxy you use to access the Internet is what we can call a "proxy", it handles traffic from a client inside your company to a server outside of your company.



You need a "reverse proxy" that handles traffic from a client outside your company to a server inside it. (Note that both features can be configured on the same proxy - the proxy can be both a reverse proxy and a forward proxy at the same time).

The .pac file you have is a way to configure your browser to go through a proxy to go to the Internet. You need to set up a proxy server to forward traffic to your web server. This configuration will not run on the local Apache server, but on the proxy itself. Therefore, you will have to talk to the administrator of this proxy server ...

+1


source







All Articles