Closed miri64 closed 1 year ago
Oh, I also did not use the dev
branch, but the release tag v0.11.4
, but I get the same result with the dev
branch.
I can also confirm that basically any path but /
(e.g. the "About" link at the bottom) yields a 500.
Ok, moving the symlink /var/www/virtual/<myusername>/<mydomain>
to /var/www/virtual/<myusername>/html
worked... Not ideal, so is there a solution that I still can use /var/www/virtual/<myusername>/<mydomain>
?
Jep, there is a solution.
Add Rewritebase /
in your .htaccess File under /var/www/virtual/isabell/example.org/.htaccess
Should look like this:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
Rewritebase /
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Thank, that worked! I will amend the instructions ASAP.
Using RewriteRule
directives in a directory other than html
always requires RewriteBase /
.
Thank, that worked! I will amend the instructions ASAP.
I followed https://lab.uberspace.de/guide_pixelfed/ exactly with the exception that I used a dedicated domain DocumentRoot and mailbox for the SMTP configuration. So fine so good, I get a login page. But once I try to login with my newly created user, I get a 500 Internal Server Error.
The apache error log only reports
and nothing is provided in the PHP log. If I try to do as recommended in the
.htaccess
, I unsurprisingly getand
Disabling the 500 error page only provides the generic Apache error page.
Seems like a configuration error, but I am not sure where to look to fix it.
Here is my (censored)
.env
file: