Fail to upload cover image OJS 3.3.0.8

I cannot upload a cover image to a article in OJS 3.3.0.8

On a submission > Publication tab > Issue tab

I try to upload a file but get the following error:
image

No errors in the log.

I tried to upload a cover image to an issue and that worked well
I have also tried to change the public_user_dir_size in config.in.php and tried to install the “Control Public Files” plugin.

The same problems arise in the text editors (tinyMCE) when try to upload images:
image

The public and uploads folders both have apache ownership.

In a journal with the same base_url as the main site this seems to work, but not on a journal with its own domain.

Is it related to this? OJS 3.2.0 The requested URL was not recognized. Image upload problem
However, that issue seems to be solved in 3.2 already!?

Thank you for help!

Update:

The browser error log:

image

Compared to a journal within the main base_url
image

Any ideas?
@asmecher ?
@ctgraham ?

@ctgraham, we have had a discussion about rewrite rules before and then the issue was solved: [Solved] Problems with api submissions error on submissions page
but now it looks like there is a change in how OJS 3.3 handles it(?)

When I add full logging for the rewrite rules I get the following results. It looks like there is a rewrite loop here!

...
[Thu Sep 16 10:37:50.256036 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/MYJournal -> /var/www/html/journal/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256055 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/MYJournal/api/v1/_submissions -> MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256059 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] applying pattern '^(.*)$' to uri 'MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256067 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] RewriteCond: input='domain.com' pattern='^www\\.(.*)$' [NC] => not-matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256071 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/MYJournal -> /var/www/html/journal/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256074 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/MYJournal/api/v1/_submissions -> MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256077 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] applying pattern '^(.*)$' to uri 'MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256082 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] RewriteCond: input='/MYJournal/api/v1/_submissions' pattern='/index.php$' => not-matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256085 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/MYJournal -> /var/www/html/journal/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256094 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/MYJournal/api/v1/_submissions -> MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256097 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] applying pattern '^(.*)$' to uri 'MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256102 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] RewriteCond: input='/MYJournal/api/v1/_submissions' pattern='!/index.php' => matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256105 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] RewriteCond: input='/MYJournal/api/v1/_submissions' pattern='!/MYJournal/' => not-matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256108 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/MYJournal -> /var/www/html/journal/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256111 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/MYJournal/api/v1/_submissions -> MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256114 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] applying pattern '^MYJournal(.*)$' to uri 'MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256118 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] RewriteCond: input='/MYJournal/api/v1/_submissions' pattern='!/index.php' => matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256122 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] RewriteCond: input='/MYJournal/api/v1/_submissions' pattern='/MYJournal/' => matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256126 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] RewriteCond: input='/var/www/html/journal/MYJournal/api/v1/_submissions' pattern='!-f' => matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256132 2021] [rewrite:trace2] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] rewrite 'MYJournal/api/v1/_submissions' -> 'index.php/MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256136 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] add per-dir prefix: index.php/MYJournal/api/v1/_submissions -> /var/www/html/journal/index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256140 2021] [rewrite:trace2] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] trying to replace prefix /var/www/html/journal/ with /, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256144 2021] [rewrite:trace5] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] strip matching prefix: /var/www/html/journal/index.php/MYJournal/api/v1/_submissions -> index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256147 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] add subst prefix: index.php/MYJournal/api/v1/_submissions -> /index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256149 2021] [rewrite:trace1] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656cdb0/initial] [perdir /var/www/html/journal/] internal redirect with /index.php/MYJournal/api/v1/_submissions [INTERNAL REDIRECT], referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256184 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/index.php -> /var/www/html/journal/index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256189 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/index.php/MYJournal/api/v1/_submissions -> index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256192 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] applying pattern '^(.*)$' to uri 'index.php/MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256196 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] RewriteCond: input='domain.com' pattern='^www\\.(.*)$' [NC] => not-matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256199 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/index.php -> /var/www/html/journal/index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256206 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/index.php/MYJournal/api/v1/_submissions -> index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256209 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] applying pattern '^(.*)$' to uri 'index.php/MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256213 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] RewriteCond: input='/index.php/MYJournal/api/v1/_submissions' pattern='/index.php$' => not-matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256216 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/index.php -> /var/www/html/journal/index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256219 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/index.php/MYJournal/api/v1/_submissions -> index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256222 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] applying pattern '^(.*)$' to uri 'index.php/MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256226 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] RewriteCond: input='/index.php/MYJournal/api/v1/_submissions' pattern='!/index.php' => not-matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256229 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/index.php -> /var/www/html/journal/index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256232 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/index.php/MYJournal/api/v1/_submissions -> index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256235 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] applying pattern '^MYJournal(.*)$' to uri 'index.php/MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256241 2021] [rewrite:trace1] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#557376559448/initial/redir#1] [perdir /var/www/html/journal/] pass through /var/www/html/journal/index.php, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256304 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/MYJournal -> /var/www/html/journal/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256309 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/MYJournal/api/v1/_submissions -> MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256312 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] applying pattern '^(.*)$' to uri 'MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256316 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] RewriteCond: input='/MYJournal/api/v1/_submissions' pattern='/index.php$' => not-matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256319 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/MYJournal -> /var/www/html/journal/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256322 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/MYJournal/api/v1/_submissions -> MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256325 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] applying pattern '^(.*)$' to uri 'MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256329 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] RewriteCond: input='/MYJournal/api/v1/_submissions' pattern='!/index.php' => matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256332 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] RewriteCond: input='/MYJournal/api/v1/_submissions' pattern='!/MYJournal/' => not-matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256335 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] add path info postfix: /var/www/html/journal/MYJournal -> /var/www/html/journal/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256341 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] strip per-dir prefix: /var/www/html/journal/MYJournal/api/v1/_submissions -> MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256344 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] applying pattern '^MYJournal(.*)$' to uri 'MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256347 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] RewriteCond: input='/MYJournal/api/v1/_submissions' pattern='!/index.php' => matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256351 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] RewriteCond: input='/MYJournal/api/v1/_submissions' pattern='/MYJournal/' => matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256355 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] RewriteCond: input='/var/www/html/journal/MYJournal/api/v1/_submissions' pattern='!-f' => matched, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256358 2021] [rewrite:trace2] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] rewrite 'MYJournal/api/v1/_submissions' -> 'index.php/MYJournal/api/v1/_submissions', referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256361 2021] [rewrite:trace3] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] add per-dir prefix: index.php/MYJournal/api/v1/_submissions -> /var/www/html/journal/index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256365 2021] [rewrite:trace2] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] trying to replace prefix /var/www/html/journal/ with /, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256368 2021] [rewrite:trace5] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] strip matching prefix: /var/www/html/journal/index.php/MYJournal/api/v1/_submissions -> index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256371 2021] [rewrite:trace4] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] add subst prefix: index.php/MYJournal/api/v1/_submissions -> /index.php/MYJournal/api/v1/_submissions, referer: https://domain.com/submissions
[Thu Sep 16 10:37:50.256374 2021] [rewrite:trace1] [pid 11769] mod_rewrite.c(470): [client 2001:6b0:17:a802:2000::1340:51251] 2001:6b0:17:a802:2000::1340 - - [domain.com/sid#557376216f78][rid#55737656edc0/subreq] [perdir /var/www/html/journal/] internal redirect with /index.php/MYJournal/api/v1/_submissions [INTERNAL REDIRECT], referer: https://domain.com/submissions


The settings of my conf.d file is:

<VirtualHost *:443>

ServerName  journal.com
ServerAlias www.journal.com

## Vhost docroot

DocumentRoot "/var/www/html/journal"

## Directories, there should at least be a declaration for /var/www/html

<Directory /var/www/html/journal>
    AllowOverride None
    Options Indexes FollowSymLinks MultiViews
    Require all granted
    DirectoryIndex index.php

    RewriteEngine on
    RewriteBase /

RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

    RewriteCond %{REQUEST_URI} /index.php$
    RewriteRule ^(.*)$ index.php/MYJournal [QSA,L]

    # If the URI already has index.php in it, don't change it
    RewriteCond %{REQUEST_URI} !/index.php
    RewriteCond %{REQUEST_URI} !/MYJournal/
    # Skip existing directories if Apache 2.2 or later
    #RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
    # Skip existing files if Apache 2.2 or later
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
    # Rewrite all other requests to a specific journal in OJS
    RewriteRule ^(.*)$ index.php/MYJournal/$1 [QSA,L]

    # If the URI already has index.php in it, don't change it
    RewriteCond %{REQUEST_URI} !/index.php
    RewriteCond %{REQUEST_URI} /MYJournal/
    # Skip existing directories if Apache 2.2 or later
    #RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
    # Skip existing files if Apache 2.2 or later
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
    # Rewrite all other requests to a specific journal in OJS
    RewriteRule ^MYJournal(.*)$ index.php/MYJournal$1 [QSA,L]

</Directory>

## Logging

LogLevel alert rewrite:trace8
ErrorLog "/var/log/httpd/journal.com:443_error_ssl.log"

ServerSignature Off

CustomLog "/var/log/httpd/journal.com:443_access_ssl.log" combined

## Header rules
  ## as per http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header
  Header Set Strict-Transport-Security "max-age=31536000"

## SSL directives

SSLEngine on

SSLProtocol All -SSLv2 -SSLv3

SSLCertificateFile      "xxxx"
SSLCertificateKeyFile   "xxx"
SSLCertificateChainFile "xxx"

SSLCipherSuite xxxx

</VirtualHost>

Does anyone have a clue?

@eddoff

Dear all,

Is there anyone that have the same problem?

When comment the base_journal row for a journal in config.inc.php it works! But of course I wish to have the domain name as base_journal.

I guess then it is probably something that could be solved in the apache conf file, or what do you think…?

Best regards,

@eddoff

The apache conf settings described in for example: [OJS 3.2.0.3] Error on Submission Page - #24 by KBodarwe solved my issue.

Edit: Our system is now updated to 3.3.0-13

This is my conf file for journal4 (within the directory tag) The main site is loacated at journal-mainsite.com and has a multiple of journals both with their own domains and without own domains:

    AllowOverride None
    Options Indexes FollowSymLinks MultiViews
    Require all granted
    DirectoryIndex index.php

    RewriteEngine on
    RewriteBase /

    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]

  RewriteCond %{REQUEST_URI} /index.php/journal1 [NC]
  RewriteRule ^(.*)$ https://jourlnal1.com/$1  [R=301,L]
  RewriteCond %{REQUEST_URI} /index.php/journal2 [NC]
  RewriteRule ^(.*)$ https://journal2.com/$1  [R=301,L]
  RewriteCond %{REQUEST_URI} /index.php/journal3-without-own-domain [NC]
  RewriteRule ^(.*)$ https://journal-mainsite.com/$1  [R=301,L]

    RewriteCond %{REQUEST_URI} /index.php$
    RewriteRule ^(.*)$ index.php/journal4 [QSA,L]

# Bugfix for OJS 3.2.0-3: submissions API doesnt work with shortened URLs
RewriteRule ^api/v1(.*)$ index.php/journal4/api/v1$1 [L,R=307]

# Rewrite URL to look cleaner
RewriteCond %{SERVER_NAME} ^journal4.com
RewriteCond %{REQUEST_URI} !/journal4/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/journal4/$1 [L]

This topic was automatically closed after 2 days. New replies are no longer allowed.