Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
<VirtualHost YOUR_IP_ADDRESS:80>
ServerName myjournal1.com
ServerAlias www.myjournal1.com
DocumentRoot /home/MYJOURNALSERVICE/public_html
ServerAdmin webmaster@myjournalservice.com
## User publizer # Needed for Cpanel::ApacheConf
<IfModule mod_suphp.c>
suPHP_UserGroup MYJOURNALSERVICE MYJOURNALSERVICE
</IfModule>
<IfModule !mod_disable_suexec.c>
SuexecUserGroup MYJOURNALSERVICE MYJOURNALSERVICE
</IfModule>
CustomLog /usr/local/apache/domlogs/myjournalservice.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
CustomLog /usr/local/apache/domlogs/myjournalservice.com combined
Options -ExecCGI -Includes
</VirtualHost>
<VirtualHost YOUR_IP_ADDRESS:80>
ServerName myjournal2.com
ServerAlias www.myjournal2.com
DocumentRoot /home/MYJOURNALSERVICE/public_html
ServerAdmin webmaster@myjournalservice.com
## User publizer # Needed for Cpanel::ApacheConf
<IfModule mod_suphp.c>
suPHP_UserGroup MYJOURNALSERVICE MYJOURNALSERVICE
</IfModule>
<IfModule !mod_disable_suexec.c>
SuexecUserGroup MYJOURNALSERVICE MYJOURNALSERVICE
</IfModule>
CustomLog /usr/local/apache/domlogs/myjournalservice.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
CustomLog /usr/local/apache/domlogs/myjournalservice.com combined
Options -ExecCGI -Includes
</VirtualHost>
; The canonical URL to the OJS installation (excluding the trailing slash)
;base_url = "http://www.myjournalservice.com" (Leave this commented)
base_url[MYJOURNAL1] = http://myjournal1.com (do not use www)
base_url[MYJOURNAL2] = http://myjournal2.com
RewriteEngine On
RewriteBase /
# Check for and remove "www" if necessary
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# Use this set of 3 lines for each of your journals
RewriteCond %{SERVER_NAME} ^myjournal1.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/MYJOURNAL1/$1 [L]
# Use this set of 3 lines for each of your journals
RewriteCond %{SERVER_NAME} ^myjournal2.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/MYJOURNAL2/$1 [L]
# Use this set of 3 lines to allow access to the main site
RewriteCond %{SERVER_NAME} ^myjournalservice.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/index/$1 [L]
Return to OJS Technical Support
Users browsing this forum: Google [Bot] and 5 guests