KIndly help me on this problem…
I hosted multiple journals in a single OJS 3.3.0-12. In the Base index page CSS is not working but in base journals 1 and 2 the CSS is working fine.
When I disable_path_info = On the CSS is working perfectly but I am unable to edit anything thing it is saying that the requested URL is not found.
When I disable_path_info = Off the base_url (index page), the CSS is not working and even I am unable to use the administration menu page and dashboard menu options page…
the following is the setting of my config file.
; Set this to On once the system has been installed
; (This is generally done automatically by the installer)
installed = On
; The canonical URL to the OJS installation (excluding the trailing slash)
base_url = "https://journals.jgu.edu.in"
; Session cookie name
session_cookie_name = OJSSID
; Session cookie path; if not specified, defaults to the detected base path
; session_cookie_path = /
; Number of days to save login cookie for if user selects to remember
; (set to 0 to force expiration at end of current session)
session_lifetime = 30
; Enable support for running scheduled tasks
; Set this to On if you have set up the scheduled tasks script to
; execute periodically
scheduled_tasks = Off
; Site time zone
; Please refer to lib/pkp/registry/timeZones.xml for a full list of supported
; time zones.
; I.e.:
; <entry key="Europe/Amsterdam" name="Amsterdam" />
; time_zone="Amsterdam"
time_zone = "UTC"
; Short and long date formats
date_format_short = "%Y-%m-%d"
date_format_long = "%B %e, %Y"
datetime_format_short = "%Y-%m-%d %I:%M %p"
datetime_format_long = "%B %e, %Y - %I:%M %p"
time_format = "%I:%M %p"
; Use URL parameters instead of CGI PATH_INFO. This is useful for broken server
; setups that don't support the PATH_INFO environment variable.
; WARNING: This option is DEPRECATED and will be removed in the future.
disable_path_info = Off
; Use fopen(...) for URL-based reads. Modern versions of dspace
; will not accept requests using fopen, as it does not provide a
; User Agent, so this option is disabled by default. If this feature
; is disabled by PHP's configuration, this setting will be ignored.
allow_url_fopen = Off
; Base URL override settings: Entries like the following examples can
; be used to override the base URLs used by OJS. If you want to use a
; proxy to rewrite URLs to OJS, configure your proxy's URL here.
; Syntax: base_url[journal_path] = http://www.myUrl.com
; To override URLs that aren't part of a particular journal, use a
; journal_path of "index".
; Examples:
base_url[index] = https://journals.jgu.edu.in/index.php
base_url[myJournal] = https://journals.jgu.edu.in/index.php/jjia
base_url[myOtherJournal] = https://journals.jgu.edu.in/index.php/jjpp
; Generate RESTful URLs using mod_rewrite. This requires the
; rewrite directive to be enabled in your .htaccess or httpd.conf.
; See FAQ for more details.
restful_urls = Off
; Restrict the list of allowed hosts to prevent HOST header injection.
; See docs/README.md for more details. The list should be JSON-formatted.
; An empty string indicates that all hosts should be trusted (not recommended!)
; Example:
; allowed_hosts = '["myjournal.tld", "anotherjournal.tld", "mylibrary.tld"]'
;allowed_hosts = '[\"18.188.206.14\", \"journals.jgu.edu.in\"]'
allowed_hosts = '[\"journals.jgu.edu.in\"]'
; Allow the X_FORWARDED_FOR header to override the REMOTE_ADDR as the source IP
; Set this to "On" if you are behind a reverse proxy and you control the X_FORWARDED_FOR
; Warning: This defaults to "On" if unset for backwards compatibility.
trust_x_forwarded_for = On
; Set the maximum number of citation checking processes that may run in parallel.
; Too high a value can increase server load and lead to too many parallel outgoing
; requests to citation checking web services. Too low a value can lead to significantly
; slower citation checking performance. A reasonable value is probably between 3
; and 10. The more your connection bandwidth allows the better.
citation_checking_max_processes = 3
; Display a message on the site admin and journal manager user home pages if there is an upgrade available
show_upgrade_warning = On
; Set the following parameter to off if you want to work with the uncompiled (non-minified) JavaScript
; source for debugging or if you are working off a development branch without compiled JavaScript.
enable_minified = On
; Provide a unique site ID and OAI base URL to PKP for statistics and security
; alert purposes only.
enable_beacon = On
; Set this to "On" if you would like to only have a single, site-wide Privacy
; Statement, rather than a separate Privacy Statement for each journal. Setting
; this to "Off" will allow you to enter a site-wide Privacy Statement as well
; as separate Privacy Statements for each journal.
sitewide_privacy_statement = Off
the following is the apache2 config setting
<VirtualHost *:80>
ServerAdmin abcd@gmail.com
ServerName journals.jgu.edu.in
DocumentRoot /var/www/html/ojs
<Directory /var/www/html/ojs>
Options Indexes FollowSymLinks MultiViews
allow from all
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =journals.jgu.edu.in
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin abcd@gmail.com
ServerName journals.jgu.edu.in
DocumentRoot /var/www/html/ojs
<Directory /var/www/html/ojs>
Options Indexes FollowSymLinks MultiViews
allow from all
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLCertificateFile /etc/letsencrypt/live/journals.jgu.edu.in/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/journals.jgu.edu.in/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>