Giter VIP home page Giter VIP logo

Comments (4)

jaydiablo avatar jaydiablo commented on August 21, 2024

@karenetheridge, that's probably something you can fix with a server setting. Leaving off the index.php in our install works fine, but our server is also configured to serve index.php as the index document if one isn't specified.

The fix will depend on which web server you're using to serve the console (apache, nginx, etc...).

from beanstalk_console.

karenetheridge avatar karenetheridge commented on August 21, 2024

Ok. it would be nice if the application itself could handle this, though, rather than having to provide it on the outside.

FWIW, I am bootstrapping the console via Perl's Plack (the standard PSGI framework) (with the path hack that I've just added included):

$ cat app.psgi
use strict;
use warnings;

use Plack::App::PHPCGIFile;

my $app = sub {
    my $env = shift;

    $env->{PATH_INFO} .= 'index.php' if substr($env->{PATH_INFO}, -1, 1) eq '/';

    Plack::App::PHPCGIFile->new(
        root => '/home/ad/karene/beanstalk_console/',
    )->to_app->($env);
};

At the command line, it is started via:

$ plackup --port 5001 --access-log ~/beanstalk_console/access.log app.psgi &

from beanstalk_console.

jaydiablo avatar jaydiablo commented on August 21, 2024

@karenetheridge I'm not the author, so I'm only speaking for myself and past experience, but in PHP we see this a lot where the index.php script is "hidden" from URLs to make the URLs look "pretty", and the web server is configured to look for an index.php file when the file part of the URL is omitted (could look for index.html or similar depending on the desired backend). It's become quite a standard configuration in the PHP/Apache world (which I believe has probably migrated to other Apache replacements like Nginx).

from beanstalk_console.

ptrofimov avatar ptrofimov commented on August 21, 2024

@karenetheridge, that's right. You need to add index.php to the list of default index files.

from beanstalk_console.

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.