dingopride / iredmail

Automatically exported from code.google.com/p/iredmail
0 stars 0 forks source link

apache alias for /ldap & /phpldapadmin are incorrect #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When a user goes to httpS://foo.example.com/phpldapadmin
or httpS://foo.example.com/ldap they get a 404 instead of the phpldapadmin page.

This is with 0.7.0-beta2 on Ubuntu 10.04 LTS (lucid)

To fix this I had to adjust the file "/etc/apache2/sites-enabled/default-ssl" 
and restart apache.

-Alias /phpldapadmin "/usr/share/apache2/phpldapadmin/"
-Alias /ldap "/usr/share/apache2/phpldapadmin/"
+Alias /phpldapadmin "/usr/share/phpldapadmin/"
+Alias /ldap "/usr/share/phpldapadmin/"

-----------------------------------------------------------------------------
It might be worth adding some tests to the post install script to catch these 
sorts of errors.
I have included a very basic cucumber test as an idea.

Feature: sub.example.com/phpldapadmin
  It should be up
  And I should be able to see the text "phpLDAPadmin"

  Scenario: Loading phpldapadmin
    When I go to "https://sub.example.com/phpldapadmin"
    Then I should see "phpLDAPadmin"

Feature: sub.example.com/ldap
  It should be up
  And I should be able to see the text "phpLDAPadmin"

  Scenario: Loading phpldapadmin
    When I go to "https://sub.example.com/ldap"
    Then I should see "phpLDAPadmin"

Original issue reported on code.google.com by aussielu...@gmail.com on 6 Mar 2011 at 2:47

GoogleCodeExporter commented 9 years ago
This was fixed on Feb 17, 2011 for Ubuntu 10.04, 10.10:
http://code.google.com/p/iredmail/source/detail?r=1c637e040684a58f5f78acfe124c93
65ea564894

Also fixed for Debian 6:
http://code.google.com/p/iredmail/source/detail?r=70cb0b35f2b4313c8dd0adfed5c212
2cb0830c73

Thanks very much for your feedback. :)

Original comment by michaelb...@gmail.com on 6 Mar 2011 at 2:57