<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Apache HTTP + Alfresco 4.2 issue in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/apache-http-alfresco-4-2-issue/m-p/90300#M26962</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm having some issues with Apache HTTP and Alfresco integration... hope sombody can help me.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;In summary, this would be my environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Alfresco Community 4.2.f installed in an Apache Tomcat 7.0.52&lt;/LI&gt;&lt;LI&gt;Java Search Tool installed in an Apache Tomcat 7.0.52&lt;/LI&gt;&lt;LI&gt;Apache HTTP 2.4&lt;/LI&gt;&lt;LI&gt;Windows Server 2019&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I configured Apache HTTP to rewrite urls as I said like this:&lt;/P&gt;&lt;PRE&gt;# 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&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;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 &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've tried (among other hundred things):&lt;/P&gt;&lt;PRE&gt;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&lt;/PRE&gt;&lt;P&gt;I've even tried the rule&lt;/P&gt;&lt;PRE&gt;RewriteRule \.* - [F]&lt;/PRE&gt;&lt;P&gt;This obviously forbids all traffic, including documents urls and the search tool stops working... BUT I still can access to&amp;nbsp;/alfresco/faces/jsp/dashboards/container.jsp. How can this be possible?&lt;/P&gt;&lt;P&gt;What's more, if I set the rule&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RewriteRule alfresco/faces/jsp/dashboards/container.jsp – [F]&lt;/PRE&gt;&lt;P&gt;It's still accessible... :__(&lt;/P&gt;&lt;P&gt;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!!&lt;/P&gt;&lt;P&gt;Thank you very much in advance &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;)&lt;/P&gt;</description>
    <pubDate>Mon, 03 Aug 2020 12:41:05 GMT</pubDate>
    <dc:creator>tcuser</dc:creator>
    <dc:date>2020-08-03T12:41:05Z</dc:date>
    <item>
      <title>Apache HTTP + Alfresco 4.2 issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/apache-http-alfresco-4-2-issue/m-p/90300#M26962</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm having some issues with Apache HTTP and Alfresco integration... hope sombody can help me.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;In summary, this would be my environment:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Alfresco Community 4.2.f installed in an Apache Tomcat 7.0.52&lt;/LI&gt;&lt;LI&gt;Java Search Tool installed in an Apache Tomcat 7.0.52&lt;/LI&gt;&lt;LI&gt;Apache HTTP 2.4&lt;/LI&gt;&lt;LI&gt;Windows Server 2019&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I configured Apache HTTP to rewrite urls as I said like this:&lt;/P&gt;&lt;PRE&gt;# 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&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;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 &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I've tried (among other hundred things):&lt;/P&gt;&lt;PRE&gt;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&lt;/PRE&gt;&lt;P&gt;I've even tried the rule&lt;/P&gt;&lt;PRE&gt;RewriteRule \.* - [F]&lt;/PRE&gt;&lt;P&gt;This obviously forbids all traffic, including documents urls and the search tool stops working... BUT I still can access to&amp;nbsp;/alfresco/faces/jsp/dashboards/container.jsp. How can this be possible?&lt;/P&gt;&lt;P&gt;What's more, if I set the rule&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;RewriteRule alfresco/faces/jsp/dashboards/container.jsp – [F]&lt;/PRE&gt;&lt;P&gt;It's still accessible... :__(&lt;/P&gt;&lt;P&gt;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!!&lt;/P&gt;&lt;P&gt;Thank you very much in advance &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 12:41:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/apache-http-alfresco-4-2-issue/m-p/90300#M26962</guid>
      <dc:creator>tcuser</dc:creator>
      <dc:date>2020-08-03T12:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Apache HTTP + Alfresco 4.2 issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/apache-http-alfresco-4-2-issue/m-p/90301#M26963</link>
      <description>&lt;P&gt;Bump! Anybody can help me here, please?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 09:53:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/apache-http-alfresco-4-2-issue/m-p/90301#M26963</guid>
      <dc:creator>tcuser</dc:creator>
      <dc:date>2020-08-12T09:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Apache HTTP + Alfresco 4.2 issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/apache-http-alfresco-4-2-issue/m-p/90302#M26964</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/47969"&gt;@tcuser&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Have you raised a support ticket?&lt;/P&gt;
&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Aug 2020 12:04:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/apache-http-alfresco-4-2-issue/m-p/90302#M26964</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-08-12T12:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: Apache HTTP + Alfresco 4.2 issue</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/apache-http-alfresco-4-2-issue/m-p/90303#M26965</link>
      <description>&lt;P&gt;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!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 09:26:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/apache-http-alfresco-4-2-issue/m-p/90303#M26965</guid>
      <dc:creator>tcuser</dc:creator>
      <dc:date>2020-08-19T09:26:06Z</dc:date>
    </item>
  </channel>
</rss>

