I did the standard install, and it seems to work fine.
But to access it I need to use a long URL, which I want to hide from the users for convenience.
Instead of:
/myServer:8000/index.php/ojs-files/index
I’d like them to be able to just use a domain name I created for this:
/MyJournals
which is just DNS mapped to the server name (Cname).
Is there a standard DNS & Apache configuration for this?
I’ve been fumbling with Apache setup and haven’t gotten it right yet.
Open Journal Systems 3.4.0.5
I followed the instructions at:
(https://docs.pkp.sfu.ca/admin-guide/en/deploy#configuration)
#Pretty URLs,
with the one change to put the directives directly into the Apache.conf file instead of .htaccess file, as recommended by current Apache guidelines.
(Apache HTTP Server Tutorial: .htaccess files - Apache HTTP Server Version 2.4)
" in general, use of .htaccess
files should be avoided when possible. Any configuration that you would consider putting in a .htaccess
file, can just as effectively be made in a <Directory>
section in your main server configuration file."
However it fails on a basic URL of the server name, but “server:8000” works…
It seems like the rewrite of the URL needs to include the port number.
??
This is rather an Apache problem for which this forum is not the right place. You may find an answer on other forums such as StackOverflow, such as this one:
https://stackoverflow.com/questions/18399719/forward-the-domain-and-remove-the-port-number-from-the-url
Anyway, when you go live with the journal, it is strongly recommend that you use https and an SSL certificate. Google downgrades sites that don’t use https.
Thank you for the note.
I think this is a common issue and question for all new installs, and as noted there is a “solution” listed on the PKP site, which does not seem to fully work. At least that advice might be fixed.