joshdick / miniProxy

🚨⚠️ UNMAINTAINED! ⚠️🚨 A simple PHP web proxy.
http://joshdick.github.io/miniProxy
GNU General Public License v3.0
858 stars 542 forks source link

Need help configuring it with nginx #141

Closed theerfan closed 4 years ago

theerfan commented 4 years ago

Hi, I'm trying to configure this proxy on my server using nginx, but apparently I fail to do so because when I try to access my server it shows the main code on GitHub instead of the starting page. (Image attached if that's confusing.) I think there's something wrong with the way I configured it, but since I have zero experience in php, I don't know what I'm doing wrong.

So what I did was that I cloned dockerised-php and replaced its index.php with this project's miniProxy.php file (renamed to index.php)

Any help would be greatly appreciated, thanks!

image

joshdick commented 4 years ago

If you're seeing the GitHub page, it's likely you saved a copy of the GitHub page rather than miniProxy itself. This is the file you need to save: https://raw.githubusercontent.com/joshdick/miniProxy/master/miniProxy.php

For more details about getting PHP working with nginx, ArchWiki is a great place to start even if you're not running Arch Linux: https://wiki.archlinux.org/index.php/Nginx#PHP_implementation

Beyond that, I unfortunately don't have the time to help debug your specific server setup.

theerfan commented 4 years ago

Yes, that was the problem! Thank you. Sorry for not noticing that, I wasn't able to recognize it because it was saved with the "correct" filename.

joshdick commented 4 years ago

You're welcome, I'm glad that did the trick!