nginx新手,刚从 apache2+mod_php 转到 nginx+php-fpm...
nginx是编译的1.5.0,php-fpm也是编译的。
nginx配置如下:
server {
listen 80;
root /var/www;
index index.html index.htm;
server_name localhost;
location / {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include fastcgi_params;
}
}
访问http://localhost/phpmyadmin,网站可以正常工作,但发现图片都404了。
目前在看php-fpm.conf,看是不是里面哪里没配好...
nginx是编译的1.5.0,php-fpm也是编译的。
nginx配置如下:
server {
listen 80;
root /var/www;
index index.html index.htm;
server_name localhost;
location / {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_script_name;
include fastcgi_params;
}
}
访问http://localhost/phpmyadmin,网站可以正常工作,但发现图片都404了。
目前在看php-fpm.conf,看是不是里面哪里没配好...