Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

404 not found error when localhost/install run #617

Closed
dreamworksTest opened this issue Feb 2, 2022 · 3 comments
Closed

404 not found error when localhost/install run #617

dreamworksTest opened this issue Feb 2, 2022 · 3 comments

Comments

@dreamworksTest
Copy link

after followed General Steps run the localhost/leantime then it only changed the url to localhost/install and showing 404 not found error.

@alaksandarjesus
Copy link

After installing in localhost, update in config/settings.php
image
`public function getBaseURL () {

    $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
    $domainName = $_SERVER['HTTP_HOST'].'';
    return $protocol.$domainName.'/{folder_name}';

}`

@hifron
Copy link

hifron commented Apr 22, 2022

In public/.htaccess file there are lines which could be altered without https:

RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule .* http://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]

@Shaun-Fong
Copy link

Check out Nginx.conf template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants