Hi all,
I'm having some issues with Apache HTTP and Alfresco integration... hope sombody can help me.
I'm developing a java web application to search documents. All this documents are stored in an Alfresco Community installation and the app accesses Alfresco via CMIS. We don't want users to access alfresco, not even the main page, so I installed an Apache HTTP server to rewrite urls and make them a little bit friendly and avoid any reference to Alfresco.
In summary, this would be my environment:
I configured Apache HTTP to rewrite urls as I said like this:
# Rewrite user URLs RewriteRule (\w{8}-\w{4}-\w{4}-\w{4}-\w{12})/([A-Z]{2}_[A-Z]{1,3}_\d{1,3}_\d{4}-\d{5}_\d{5}.*)/(\w+)$ /alfresco/service/api/node/content/workspace/SpacesStore/$1/$2?alf_ticket=TICKET_$3 RewriteRule thumbnails/(\w{8}-\w{4}-\w{4}-\w{4}-\w{12})/(\w+)$ /alfresco/service/api/node/workspace/SpacesStore/$1/content/thumbnails/doclib?alf_ticket=TICKET_$2
It works like charm, but when I try to ban the access to Alfresco main page, or any other petition to any other url in Alfresco, it fails :/
I've tried (among other hundred things):
RewriteRule alfresco/(\w+/)+\w+\.jsp$ - [F] NOOK RewriteRule ^alfresco/(\w+/)+\w+\.jsp$ - [F] NOOK RewriteRule ^alfresco/(\w+/)+\w+\.jsp - [F] NOOK RewriteRule alfresco* - [F] NOOK
I've even tried the rule
RewriteRule \.* - [F]
This obviously forbids all traffic, including documents urls and the search tool stops working... BUT I still can access to /alfresco/faces/jsp/dashboards/container.jsp. How can this be possible?
What's more, if I set the rule
RewriteRule alfresco/faces/jsp/dashboards/container.jsp – [F]
It's still accessible... :__(
I'm sure I'm missing something... maybe it has something to do with the redirections in Alfresco jsp's files? I don't know but I think I'm going crazy... so help needed, plis!!
Thank you very much in advance )
Bump! Anybody can help me here, please?
Hi @tcuser,
Have you raised a support ticket?
Cheers,
Not yet... since it's not exactly a product related problem, I haven't. But I will, 'cause my problem is still there :/. Thank you!
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.