I followed this setting: Each journal with its own domain name - #30 by florianruckelshausen and one of my journal has its own domain, but it gives always this error in the interface:
In the server log I got this:
[Tue Mar 29 15:11:34.530832 2022] [php7:notice] [pid 172402] [client] ojs2: 404 Not Found, referer: journalurl
Those are my precise settings.
In .htaccess:
RewriteEngine On RewriteBase /
#Journal has its own domain RewriteCond %{SERVER_NAME} ^(www\.)?url.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/url/$1 [QSA,L]
In the config.php:
base_url[journal] = journalurl.com
base_url[test] = http://test.com/index.php/test
allowed_hosts = "[\"test.com", "journalurl.com"]"
restful_urls = On
Created the specific conf file in sites-available and enabled with a2ensite:
ServerName journalurl.com
<Directory /var/www/ojs>
Options Indexes FollowSymLinks Multiviews
AllowOverride All
Order allow,deny
allow from all
</Directory>
What can be wrong?