Giter Club home page Giter Club logo

Comments (7)

Rudloff avatar Rudloff commented on August 25, 2024

The npm install script was using Unix paths so it was not compatible with Windows. It should work now (b2e29a8).

In order to make the downloads work, you probably need to tweak the paths in config.yml.
(If it still does not work, please provide your Apache error log and any error printed by Alltube.)

from alltube.

SphinxTwo avatar SphinxTwo commented on August 25, 2024

Just ran npm install with the new package,json file, it installed fine. Now it's (Alltube) giving me an error 404 when I am trying to download/convert a link. I am using Nginx for my web server. There doesn't seem to be an error output.

from alltube.

Rudloff avatar Rudloff commented on August 25, 2024

I don't know much about Nginx but I guess you get 404 errors because AllTube uses some URL rewriting in .htaccess and Nginx does not read this file.
You probably need to add something like this to your Nginx configuration:

try_files $uri /index.php;

(AllTube uses the Slim framework so you can read about this here: http://docs.slimframework.com/routing/rewrite/#nginx)

Another solution would be to add a setting in config.yml that disables URL rewriting.

from alltube.

SphinxTwo avatar SphinxTwo commented on August 25, 2024

Alright. I will check try this out and report back.

from alltube.

SphinxTwo avatar SphinxTwo commented on August 25, 2024

Doesn't seem to work properly, would you like to take a look and see if I missed something?

from alltube.

folta avatar folta commented on August 25, 2024

I added an example nginx config that works for me here: #48

from alltube.

SphinxTwo avatar SphinxTwo commented on August 25, 2024

Seems like @folta 's config worked. I had to make a sub-domain for my version of Alltube which is

server {
    server_name u.thebeast.tech;
    listen 80;

    root www/Alltube;
    index index.php;

    access_log  logs/alltube.access.log;
    error_log   logs/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 php;
            fastcgi_index index.php;
            fastcgi_split_path_info ^(.+\.php)(/.+)$;
            fastcgi_intercept_errors off;


            include fastcgi_params;
    }
}

from alltube.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.