LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-16-2011, 11:26 PM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 558

Rep: Reputation: 53
PHP Reverse Proxy without cURL


Is there a way to make a reverse proxy with PHP, akin to php-web-proxy but that does not use cURL? My server, whose Apache configuration I cannot change, does not have php5-curl/libcurl nor mod_proxy, and it is in PHP safe-mode. I hear it is possible to use fopen instead of cURL.

Basically, I want to forward my local Apache webserver, operating on port (1082), via SSH to a public server (the one whose configuration I cannot change) using this command on my local machine:

Code:
ssh -fNR 1082:localhost:1082 my_u_name@public_server
Then I want public_server to take localhost:1082 and reverse proxy it to http://mydomain.com/myfolder, hence the need for a PHP proxy like Glype or the above-mentioned php-web-proxy but that does not use cURL.

Thanks

Last edited by Geremia; 04-16-2011 at 11:38 PM. Reason: added additional info
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php get client's ip through reverse proxy frieza Linux - Networking 2 02-26-2009 12:31 PM
PHP: cUrl - post data doesn't go through proxy elvijs Programming 0 12-17-2007 09:26 AM
Squid as Reverse Proxy and LAN proxy? zivota Linux - Security 2 02-26-2007 06:00 PM
Curl under PHP ttxmika Slackware 11 05-31-2005 12:24 PM
php and curl Risen Linux - Software 0 09-02-2003 04:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration