Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEXT-14188 - Fix css in root installation error page
- Loading branch information
Showing
5 changed files
with
58 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/var | ||
!/var/plugins.json | ||
/.* | ||
!/.htaccess | ||
**/*.git | ||
**/node_modules | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
DirectoryIndex index.html | ||
|
||
<IfModule mod_negotiation.c> | ||
Options -MultiViews | ||
</IfModule> | ||
|
||
<IfModule mod_alias.c> | ||
# Restrict access to VCS directories | ||
RedirectMatch 404 /\\.(svn|git|hg|bzr|cvs)(/|$) | ||
|
||
# Restrict access to root folder files | ||
RedirectMatch 404 /(composer\.(json|lock|phar)|README\.md|\.gitignore|.*\.dist|\.env.*)$ | ||
|
||
# Restrict access to shop configs files | ||
RedirectMatch 404 ^.*\/(bin|config|build|custom|files|src|var|vendor)\/(?<!public).*$ | ||
</IfModule> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fceb408
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That new
.htaccess
breaks the update process, causing 500/server errors - if Apache is not configured withAllowOverride
in the root directory. Just happened here.fceb408
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have an excact error message? The conditionals are in IfModule statements
fceb408
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course:
fceb408
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shyim our hoster found out this is only happening with nested symbolic links, which we had here:
docroot => linking to SW root directory, which contained a symbolic link "htdocs" => "public"
Converting the first link to a directory with one symlink pointing to public resolved the issue.