Skip to content

yeahwhat-mc/heroku-php-status-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heroku-php-status-proxy

Simple Heroku hosted PHP proxy to check the HTTP status of websites. The repository is based on Heroku's php-getting-started. It's purpose for YEAHWHAT?! is to allow requesting AJAX request without the proper "Access-Control-Allow-Origin" headers set. For more information, checkout our fallback webserver.

Usage

  1. Update the configuration in the index.php (enable_jsonp, enable_native, valid_url_regex, etc.)
  2. Commit changes
  3. Deploy to Heroku (see instructions below)
  4. Open https://assigned-name-1234.herokuapp.com/?url=http://yeahwh.at

Running Locally

Make sure you have PHP, Apache and Composer installed. Also, install the Heroku Toolbelt.

$ git clone https://github.com/yeahwhat-mc/heroku-php-status-proxy.git # or clone your own fork
$ cd php-status-proxy
$ composer update
$ foreman start web

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

About

Simple PHP proxy to parse HTTP status codes. Used for our fallback webserver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages