Sunday, August 8, 2010
Sunday, August 1, 2010
really final work with css nginx zf conf
server {
listen 80;
server_name localhost;
access_log /var/www/lolhost/logs/access.log;
error_log /var/www/lolhost/logs/error.log;
index /index.php;
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
if (!-f $request_filename) {
break;
}
location ~ \.(php|phtml)$ {
fastcgi_pass 127.0.0.1:8888;
fastcgi_index /index.php;
fastcgi_param SCRIPT_FILENAME /var/www/lolhost/public_html$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
}
final nginx config
server {
listen 80;
server_name localhost;
access_log /var/www/lolhost/logs/access.log;
error_log /var/www/lolhost/logs/error.log;
index /index.php;
location ~ \.(jpg|jpeg|gif|png|ico|css|bmp|js|swf)$ {
root /var/www/lolhost/public_html;
}
location ~ \.(php|phtml)$ {
fastcgi_pass 127.0.0.1:8888;
fastcgi_index /index.php;
fastcgi_param SCRIPT_FILENAME /var/www/lolhost/public_html$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
if (!-e $request_filename) {
rewrite ^.*$ /index.php last;
}
}
Subscribe to:
Comments (Atom)