Hello,
I've installed, nginx and php-fpm from the ports which are working fine togheter.
I've also installed phpmyadmin from the ports but I cannot configure nginx to serve it correctly and I get permission denied (403). here is my /usr/local/etc/nginx/nginx.conf:
Which lines should be added to get it to work?
I've installed, nginx and php-fpm from the ports which are working fine togheter.
I've also installed phpmyadmin from the ports but I cannot configure nginx to serve it correctly and I get permission denied (403). here is my /usr/local/etc/nginx/nginx.conf:
Code:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
location /phpMyAdmin/ {
alias /usr/local/www/phpMyAdmin;
index index.php index.html;
}
location /phpmyadmin {
rewrite ^/* /phpMyAdmin last;
}
location / {
root /usr/local/www/data;
index index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/local/www/nginx-dist;
}
location ~ \.php$ {
root /usr/local/www/data;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
fastcgi_intercept_errors on;
error_page 404 /error/404.php;
include fastcgi_params;
}
}
}
Which lines should be added to get it to work?