Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Add Example Nginx Config #48

Closed
folta opened this issue Mar 16, 2016 · 1 comment
Closed

Add Example Nginx Config #48

folta opened this issue Mar 16, 2016 · 1 comment

Comments

@folta
Copy link

folta commented Mar 16, 2016

Here is the config that works for me, custom ssl portions removed.
Ssl configuration needs to be added, otherwise switch

listen 443 ssl;

to

listen 80;
server {
        server_name localhost;
        listen 443 ssl;

        root /var/www/path/to/alltube;
        index index.php;

        access_log  /var/log/nginx/alltube.access.log;
        error_log   /var/log/nginx/alltube.error.log;

        types {
                text/html   html htm shtml;
                text/css    css;
                text/xml    xml;
                application/x-web-app-manifest+json   webapp;
        }

        # Deny access to dotfiles
        location ~ /\. {
                deny all;
        }

        location / {
                try_files $uri /index.php?$args;
        }

        location ~ \.php$ {
                try_files $uri /index.php?$args;

                fastcgi_param     PATH_INFO $fastcgi_path_info;
                fastcgi_param     PATH_TRANSLATED $document_root$fastcgi_path_info;
                fastcgi_param     SCRIPT_FILENAME $document_root$fastcgi_script_name;

                fastcgi_pass unix:/var/run/php5-fpm.sock;
                fastcgi_index index.php;
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_intercept_errors off;

                fastcgi_buffer_size 16k;
                fastcgi_buffers 4 16k;

                include fastcgi_params;
        }
}
@Rudloff
Copy link
Owner

Rudloff commented Mar 16, 2016

Thanks! I've added your example config to the README: e4d6ab7

@Rudloff Rudloff closed this as completed Mar 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants