Coder Social home page Coder Social logo

404 after install about tabby HOT 2 CLOSED

bertvandepoel avatar bertvandepoel commented on May 27, 2024
404 after install

from tabby.

Comments (2)

bertvandepoel avatar bertvandepoel commented on May 27, 2024

Tabby relies on mod_rewrite in Apache or similar features in other web servers like nginx and lighttpd to map all non-existent requests to index.php. The installer contains checking code that verifies whether this mapping (with the included .htaccess) is done correctly. If you're a coder, you can see the checks on https://github.com/bertvandepoel/tabby/blob/master/resources/install.php#L55

If the verification of the mapping as part of installation fails (see https://github.com/bertvandepoel/tabby/blob/master/index.php#L104 if you're a coder), a message is displayed after installation to notify you of this. So the installer should finish with a message like:

By default, Tabby uses a .htaccess file with mod_rewrite to support semantic URLs and hide the changelog.txt file

It seems visits to semantic URLs aren't correctly mapped to index.php. If you are running Apache, please verify that mod_rewrite is enabled and either allow .htaccess files ("AllowOverride All" on the Directory context, "AccessFileName .htaccess" globally) or appropriately move the contents of .htaccess to a VirtualHost or Directory context within your configuration. If you are using nginx, add a fallback to index.php in the appropriate try_files statement. Instructions on how to fall back to index.php are easily available online for other webserver software.

It also seems changelog.txt is publicly available. While this isn't a problem in and by itself, the changelog clearly indicates which version of Tabby you are running. If any security issue would turn up in the future, a possible attacker could deduce whether you are vulnerable or not based on the changelog when it's available. To prevent this, changelog.txt is redirected to index.php. This also means that you can followed identical instructions for Apache. If .htaccess works correctly or its contents are moved to configuration in the right context, both issues should be resolved. If you are using nginx, a rewrite or return can be used prior to try_files to move visits for changelog.txt to the Tabby base URL. Instructions on how to redirect a specific file are easily available online for other webserver software.

Did you perhaps miss these messages in the installer or read them a little too quickly and therefore missed their importance? If you did not get them, could you please post a screenshot of the "installation complete" page with the green Installation completed successfully success message? Either way, I'm willing to look into the installer to hopefully prevent others from having this issue.

from tabby.

bjdm avatar bjdm commented on May 27, 2024

Thanks for the help!

After a break away from it for a little while and some fresh eyes, I've managed to get it fixed.

It appears the problem was an omitted slash ie. should have been /index.php in my try_files, which does seem rather odd, but glad it's all sorted!

from tabby.

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.