These are chat archives for idleberg/Bootstrap-Listr

26th
Feb 2016
Mathieu Aubin
@mathieu-aubin
Feb 26 2016 00:33
@bkotecha i do have a working configuration, yes. Email me mathieu@zeroserieux.com and as soon as i get back home i will help you
@bkotecha i'll be back home in about an hour or so... http://shared.zeroserieux.com is running with nginx
@bkotecha if you wanted you could proxy apache with nginx, i can give you a working config for that as well or a server block for listr straight nginx server. Assuming you already have php fpm installed, its only a couple lines of code...if you tell me your needs i will get you a server block config that works
Mathieu Aubin
@mathieu-aubin
Feb 26 2016 02:38
@bkotecha here's a server block that actually works.
This message was deleted
server {
    listen 80;
    # MODIFY THE FOLLOWING TWO LINES
    server_name servername.domain.whatever;
    root /path/to/listr/root;

    location / {
        index index.php;
        if (!-e $request_filename) {
        rewrite ^(.+)$ /index.php?path=$1;
        }
    }

    location ~ \.php$ {
        include fastcgi_params;
        # MODIFY THE FOLLOWING TO REFLECT YOUR SEFVER'S FASTCGI CONFIG    
        fastcgi_pass ADD YOUR FASTCGI HERE;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}
Mathieu Aubin
@mathieu-aubin
Feb 26 2016 02:46
if you want to proxy apache... make sure it runs on another port than 80 of course...
then setup a nginx server and add the following location setting
    location / {
        rewrite ^/?(.*)$ /$1 break;    
        # MODIFY THIS TO THE PORT APACHE IS RUNNING ON
        proxy_pass  http://127.0.0.1:4200;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
that way, you can run apache on port say 3535 and proxy it thru nginx by changing the line proxy_pass http://127.0.0.1:4200; to proxy_pass http://127.0.0.1:3535;
Mathieu Aubin
@mathieu-aubin
Feb 26 2016 03:24
@idleberg maybe you'd be interrested in this link http://bootsnipp.com/snippets/featured/easy-table-filter -- could potentialy be adapted to bootstrap4