<?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 Alfresco DNS name server/virtual hosts problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-dns-name-server-virtual-hosts-problem/m-p/155531#M109855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Alfresco/Linux Gods,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recently installed the latest version of alfresco on my Ubuntu 8.04 machine. I have a DNS server BIND9 set up on this computer and I already have virtual hosts for other applications running on an intranet domain that I created. I am using Apache 2.2 as the front end web server. I now wanted to setup alfresco to run in the same way like the other applications. This means I do not want to enter the ip address and port number to go to my alfresco page. I just want to enter a simple alfresco.mydomain.net to go to the alfresco website. I have created "A" record called alfresco in BIND9 and I know this requires some kind of tomcat-apache integration. But I dont know what to use to integrate Apache 2.2 with Tomcat. I installed the Alfresco-Tomcat bundle so my alfresco version came with the tomcat. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried using mod_jk but that doesnt seem to work. When I type the web address, all I get is a directory listing of my alfresco directory. The jsp pages dont show up. Can someone please help me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-R&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2008 07:23:22 GMT</pubDate>
    <dc:creator>raul_bhatia</dc:creator>
    <dc:date>2008-07-10T07:23:22Z</dc:date>
    <item>
      <title>Alfresco DNS name server/virtual hosts problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-dns-name-server-virtual-hosts-problem/m-p/155531#M109855</link>
      <description>Hello Alfresco/Linux Gods,I recently installed the latest version of alfresco on my Ubuntu 8.04 machine. I have a DNS server BIND9 set up on this computer and I already have virtual hosts for other applications running on an intranet domain that I created. I am using Apache 2.2 as the front end web</description>
      <pubDate>Thu, 10 Jul 2008 07:23:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-dns-name-server-virtual-hosts-problem/m-p/155531#M109855</guid>
      <dc:creator>raul_bhatia</dc:creator>
      <dc:date>2008-07-10T07:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco DNS name server/virtual hosts problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-dns-name-server-virtual-hosts-problem/m-p/155532#M109856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I've done on Centos to integrate Apache and Tomcat. I use this for most of my production environments as I prefer Apache in front of Tomcat. These instructions should apply to Ubuntu, however paths may vary slightly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First of all, if your using the Tomcat bundled with Alfresco - you'll need to enable the AJP/13 listener. AJP is the protocol that mod_jk (now mod_proxy_ajp in 2.2) uses to talk to Tomcat. Its more or less HTTP with binary headers :-).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So … lets assume you've installed Alfresco into /opt/alfresco. Modify the file /opt/alfresco/tomcat/conf/server.xml and include the following block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;Service name="Catalina"&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– Define an AJP 1.3 Connector on port 8009 –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Connector port="8009" &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp; &amp;lt;/Service&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then restart Alfresco. AJP should now be working on port 8009. You can test this quite easily:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;# telnet 0 8009&lt;BR /&gt;Trying 0.0.0.0…&lt;BR /&gt;Connected to 0 (0.0.0.0).&lt;BR /&gt;Escape character is '^]'.&lt;BR /&gt;^]&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;If you get the &lt;/SPAN&gt;&lt;EM&gt;Connected&lt;/EM&gt;&lt;SPAN&gt; message - your in business.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you need to configure Apache by adding a new virtualhost to the end of your configuration file &lt;/SPAN&gt;&lt;EM&gt;httpd.conf&lt;/EM&gt;&lt;SPAN&gt;. My Apache configuration is located in &lt;/SPAN&gt;&lt;STRONG&gt;/etc/httpd/conf/httpd.conf&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;VirtualHost *:80&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ServerName alfresco.mydomain.net&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteEngine on&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RewriteRule ^/alfresco(.*) ajp://127.0.0.1:8009/alfresco$1 [P,L]&lt;BR /&gt;&amp;lt;/VirtualHost&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The magic here is the &lt;/SPAN&gt;&lt;STRONG&gt;RewriteRule&lt;/STRONG&gt;&lt;SPAN&gt; combined with the [P] option at the end. This uses mod_proxy_ajp to connect to the AJP provider on localhost (ie. Alfresco's tomcat).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now you should be able to restart Apache - and connect to your web server using the name you have specified in &lt;/SPAN&gt;&lt;STRONG&gt;ServerName&lt;/STRONG&gt;&lt;SPAN&gt; above. I very highly recommend running your Apache in threaded mode, that way your AJP connections get pooled. In pre-fork mode … Apache creates an AJP connection per process which is not quite as efficient - especially under high load. I'm not 100% on the "correct" way to do this for Ubuntu.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have problems - check your &lt;/SPAN&gt;&lt;EM&gt;error_log&lt;/EM&gt;&lt;SPAN&gt; output from Apache (for me its in &lt;/SPAN&gt;&lt;EM&gt;/var/log/httpd/error_log&lt;/EM&gt;&lt;SPAN&gt;). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You &lt;/SPAN&gt;&lt;EM&gt;may&lt;/EM&gt;&lt;SPAN&gt; find the mod_proxy_ajp modules needs to be loaded. If you get an error, you can include this configuration in your &lt;/SPAN&gt;&lt;EM&gt;httpd.conf&lt;/EM&gt;&lt;SPAN&gt; (probably best to put this outside your VirtualHost configuration):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;LoadModule proxy_ajp_module modules/mod_proxy_ajp.so&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; I tried using mod_jk but that doesnt seem to work. When I type the web address, all I get is a directory listing of my alfresco directory. The jsp pages dont show up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Most odd … perhaps try the configuration above and let us know how you get on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ken.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 08:48:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-dns-name-server-virtual-hosts-problem/m-p/155532#M109856</guid>
      <dc:creator>kbarber</dc:creator>
      <dc:date>2008-07-18T08:48:38Z</dc:date>
    </item>
  </channel>
</rss>

