Skip to content

Instantly share code, notes, and snippets.

@frugan-dev
Forked from sobstel/auth-vhost.conf
Created November 3, 2015 11:43
Show Gist options
  • Save frugan-dev/c1e7cb5131b4c67a292b to your computer and use it in GitHub Desktop.
Save frugan-dev/c1e7cb5131b4c67a292b to your computer and use it in GitHub Desktop.

Revisions

  1. @sobstel sobstel created this gist Mar 21, 2014.
    6 changes: 6 additions & 0 deletions auth-vhost.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    <VirtualHost *>
    ServerName auth.dev
    DocumentRoot "/var/www/auth"
    ProxyPassMatch ^(/.*\.php)$ fcgi://127.0.0.1:9000/var/www/auth
    SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    </VirtualHost>