Each journal with its own domain name

Hello I’m try to configure our platform with 1 sub-domain per journal.

I follow your method but I get "No Access-Control-Allow-Origin header is present on the requested" error when editing users.

I’ve seen this topic but I can’t succeed how to modify my configuration properly

Can anyone help me ?

Here are my files

Apache hosts

   <VirtualHost *:80>
  ServerName www.dynrev-local.com
  DocumentRoot /var/www/html/ojs
  <Directory /var/www/html/ojs/>
    	Options Indexes FollowSymLinks MultiViews
	AllowOverride All
	Require all denied
	Require all granted
  </Directory>
  ErrorLog ${APACHE_LOG_DIR}/error.log
  LogLevel warn
  CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

<VirtualHost *:80>
  ServerName demo.dynrev-local.com
  DocumentRoot /var/www/html/ojs
  <Directory /var/www/html/ojs/>
    	Options Indexes FollowSymLinks MultiViews
	AllowOverride All
	Require all denied
	Require all granted
  </Directory>
  ErrorLog ${APACHE_LOG_DIR}/error.log
  LogLevel warn
  CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

<VirtualHost *:80>
  ServerName dynamic-reviews.dynrev-local.com
  DocumentRoot /var/www/html/ojs
  <Directory /var/www/html/ojs/>
    	Options Indexes FollowSymLinks MultiViews
	AllowOverride All
	Require all denied
	Require all granted
  </Directory>
  ErrorLog ${APACHE_LOG_DIR}/error.log
  LogLevel warn
  CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

.htacess

RewriteEngine On
RewriteBase /

## demo has its own domain
RewriteCond %{SERVER_NAME} ^(demo\.)?dynrev.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/demo/$1 [QSA,L]

## dynamic-reviews has its own domain
RewriteCond %{SERVER_NAME} ^(dynamic-reviews\.)?dynrev.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php/dynamic-reviews/$1 [QSA,L]

## Mainsite of OJS with journal overview
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^index/(.*)$ /index.php/index/$1 [QSA,L]
1 Like