2017 © Pedro Peláez
 

symfony-bundle proxy-url-rewrite-bundle

A Symfony bundle to rewrite URLs for applications behind reverse proxies

image

phpmentors/proxy-url-rewrite-bundle

A Symfony bundle to rewrite URLs for applications behind reverse proxies

  • Tuesday, July 31, 2018
  • by iteman
  • Repository
  • 1 Watchers
  • 4 Stars
  • 931 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

ProxyURLRewriteBundle

A Symfony bundle to rewrite URLs for applications behind reverse proxies, (*1)

Total Downloads Latest Stable Version Latest Unstable Version Build Status, (*2)

Features

Installation

ProxyURLRewriteBundle can be installed using Composer., (*3)

First, add the dependency to phpmentors/proxy-url-rewrite-bundle into your composer.json file as the following:, (*4)

Stable version:, (*5)

composer require phpmentors/proxy-url-rewrite-bundle "1.3.*"

Development version:, (*6)

composer require phpmentors/proxy-url-rewrite-bundle "~1.4@dev"

Second, add PHPMentorsProxyURLRewriteBundle into your bundles to register in AppKernel::registerBundles() as the following:, (*7)

...

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            ...
            new PHPMentors\ProxyURLRewriteBundle\PHPMentorsProxyURLRewriteBundle(),
        );
        ...

Configuration

app/config/config.yml:, (*8)

...
phpmentors_proxy_url_rewrite:
    proxy_urls:
        foo_bar:
            path: "!^.*!"
            proxy_url: "http://www.example.com/foo/bar"

app/config/config_dev.yml:, (*9)

...
phpmentors_proxy_url_rewrite:
    enabled: false

Support

If you find a bug or have a question, or want to request a feature, create an issue or pull request for it on Issues., (*10)

Copyright (c) 2014-2016, 2018-2019 KUBO Atsuhiro, All rights reserved., (*11)

License

The BSD 2-Clause License, (*12)

The Versions