Skip to content

Commit

Permalink
Added an vhost example for NginX
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederik Boster authored and PeeHaa committed Oct 18, 2014
1 parent fc4a7cc commit 5e054c9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions support/htpasswd.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TestUser:2CfnzNu8dxqjs
15 changes: 15 additions & 0 deletions support/nginx_vhost.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server {
listen 80;
server_name opcachegui.example.com;
root /var/www/OpCacheGUI/public;

auth_basic "OpCacheGUI Login";
auth_basic_user_file /var/www/OpCacheGUI/.htpasswd;

try_files $uri $uri/ /index.php;

location ~* \.php$ {
include fastcgi_params;
fastcgi_pass /var/run/php5-fpm.sock;
}
}

0 comments on commit 5e054c9

Please sign in to comment.