devtools.nginx.conf 899 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
server {
    listen 80 default_server;
    root /home/gliders/devtools/;

    location / {
        auth_basic "Restricted";
        auth_basic_user_file /home/gliders/devtools/.htpasswd;
        index index.php index.xhtml index.html index.htm index.txt;
        autoindex on;
    }

Gliders User's avatar
Gliders User committed
12 13 14 15 16
    location /phpma {
        index index.php;
        try_files $uri /phma/index.php?$is_args$args;
    }

17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
    location /phpci {
        index index.php;
        try_files $uri /phpci/public/index.php$is_args$args;
    }

    error_log /var/log/nginx/devtools.error.log;
    access_log off;

    location ~ \.php {
        fastcgi_index index.php;
        fastcgi_pass hhvmfcgi;
        fastcgi_buffers 256 4k;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param SCRIPT_NAME $fastcgi_script_name;
        fastcgi_param HTTPS off;
    }
}