Jump to content

Edit History

Richard Holy

Richard Holy


My fault

I am unable to delete the question as I have found that I messed up... So instead:
If you want to have a reverse proxy server, so that you access https://shop.domain.com and load https://localhost:4433, you can use Fiddler as a reverse proxy.

Hosts in fiddler:
localhost:88 shop.domain.com:80
localhost:4433 shop.domain.com:443

 

Richard Holy

Richard Holy

Hello,

I am trying to create reverse proxy solution on localhost, running windows, apache (xampp) and Fiddler. I want to be able to access https://myshop.mydomain.com and redirect to https://localhost:4433.
I have set up fiddler host like:
localhost:88 myshop.mydomain.com:80
localhost:4433 myshop.mydomain.com:443
And I have setup the apache to listen to 88 and ssl on 4433, have the SSL certificates on localhost etc.

Now this is weird:
It all works fine when I try without prestashop, or with the prestashop instance and die('here I am') statement as a first code line in the index.php. Basically it all works until it loads the application.

When I try to run the prestashop instance and remove that die statement, the application starts to redirect and xampp panel goes nuts and changes the apache port listening from 88,4433 to different ports. Roughly every second new ports appear in the xampp panel.

Is anyone trying this or similar reverse proxy configuration on localhost, so that basically you run access localhost application in browser as you were accessing a domain?
Please share your setup.

×
×
  • Create New...