Dear All,
I am using Apache in front of our tomcat and I would like to redirect all
pages to https except the feedback page and request copy form. My rewrite
code is below
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI}
!^/(feedback|handle/10862/(.*)/restricted-resource)
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI}
^/(feedback|handle/10862/(.*)/restricted-resource)
RewriteRule ^(.*)$ http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
My problem is that when the feedback page is redirected to http from https,
I am encountering the java.lang.NullPointerException. My dspace.cfg has the
mail.allowed.referrers = repository.seafdec.org.ph entry but it seems it
does not recognize that if it's from an https page. How can I achieve this?
I tried mail.allowed.referrers =
repository.seafdec.org.ph,https://repository.seafdec.org.ph but it has no
effect. Is disabling the allowed referrers in SendFeedbackAction.java the
only way to achieve this? If yes, can you please point to me the start and
end of the code that I should delete/modify?
I am hoping that there's a much better way to achieve this without
disabling the allowed referrers. In case you ask why I excluded the
feedback page to be served in https, I have a custom javascript code that
is not working if served from https.
Thanks in advance and regards,
euler
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.