server {
listen 80;
root /var/www/govnohoster;
server_name govnohoster.ga;
charset utf8;
location / {
index index.html index.php index.htm;
}
location ~ \.php {
try_files $uri $uri/ =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
server {
listen 80;
server_name pma.govnohoster.ga;
root /usr/share/phpmyadmin/;
location / {
alias /usr/share/phpmyadmin/;
index index.php index.html index.htm;
location ~ \.php$ {
try_files $uri $uri/ =404;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_intercept_errors on;
include fastcgi_params;
}
}
}
server {
listen 80;
server_name status.govnohoster.ga;
location / {
proxy_pass http://localhost:5555/;
}
}