1 Reply Latest reply on Sep 2, 2008 9:56 AM by erasmomarciano

    Problem With SymLinks, Apache, AJP

    soundz

      Hi,

      My apache, mod_proxy_ajp configuration is having issues following any symlinks in docroot. Trying to access any URL that is a symlink results in 404.

      Here is my setup:
      Ubuntu 7.10 64bit
      Apache 2.2.4 (installed from respository)
      default mod_proxy_ajp install with apache
      mod_proxy_ajp configured with JBoss 4.0.5

      FollowSymLinks is turned on for all directories and virtual servers. Here are the lines I added to Apache configuration to enable pass-through to Jboss:


      ProxyRequests Off
      <Proxy *>
       Options Indexes FollowSymLinks MultiViews
       AllowOverride None
       Order allow,deny
       Allow from all
      </Proxy>
      
      ProxyPass / ajp://127.0.0.1:8009/
      ProxyPassReverse / ajp://127.0.0.1:8009/
      


      I made a simple symlink test with test2.html -> test1.html. To test the permissions, I set them to 777 and tried chowning to root, www-data, my username. All test fail with 404.

      If I disable ajp, all symlinks work fine in the default apache DocumentRoot.

      Any suggestions?

      Thanks,

      Jimmy