Posts Tagged ‘developer’

Nginx y symfony

12 diciembre, 2014

Por cuestiones laborales me tocó instalar nginx y poner a rodar un sistema con symfony, aquí la chuleta:

u mad bro?

u mad bro?

server {
    listen 80;
    server_name ccc.localhost;
    root /home/bashman/public_html/foo/web;
    location / {
        try_files $uri @ree;
    }
    location @ree {
        rewrite ^(.*)$ /index.php/$1 last;
        #rewrite ^(.*)$ /principal.php/$1 last;
    }
    location ~ ^/(index|frontend|frontend_dev)\.php(/|$) {
        fastcgi_pass unix:/var/run/php5-fpm.sock;
        fastcgi_split_path_info ^(.+\.php)(/.*)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

Anuncios