SSL and ispconfig RewriteEngine

Discussion in 'Installation/Configuration' started by collimic, Oct 11, 2010.

  1. collimic

    collimic New Member

    Hello all,
    I am runing Ubuntu 8.10 with ISPconfig 2.
    I have many clients that use the webmail function of the site.
    It is working great except that they get the unsecure site warning when they try to login to https://www.mysite.com:81 I bought a SSL Cert that is good for 1 domain and that domain is not https://www.mysite.com:81 but instead https://server1.mysite.com:81 if I goto https://server1.mysite.com:81 everything works great. I have many clients that will only type https://www.mysite.com:81 or https://mysite.com:81 .

    What I need is to find a way to forward or Rewite the url to the correct one.
    I tried to set the RewriteEngine On in the .htaccess file but I get errors that state..

    .htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration.

    I cannot find a way to redirect the site.

    Thank you in advance.
     
  2. falko

    falko Super Moderator ISPConfig Developer

    You need
    Code:
    AllowOverride All
    in the vhost configuration to allow mod_rewrite directives in an .htaccess file.
     
  3. collimic

    collimic New Member

    AllowOverride All is set to all.
    The file that I am setting it in is /root/ispconfig/httpd/conf/httpd.conf

    The error I get in the logs
    Code:
     /home/admispconfig/ispconfig/web/.htaccess: Invalid comman
    d 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
    It works for all my main site via the Vhost.conf files. But it does not looking installed for the ispconfig_server running on port 81
     
    Last edited: Oct 12, 2010
  4. falko

    falko Super Moderator ISPConfig Developer

    I'm not sure if mod_rewrite is enabled for ISPConfig's web server...
     
  5. collimic

    collimic New Member

    It is not enabled that is kind of what I am tring to do but I am not sure how to do it.
     
  6. falko

    falko Super Moderator ISPConfig Developer

    You'd have to rebuild ISPConfig's Apache (which is not a good idea, I think, because even if you succeed, it would be lost the next time you upgrade ISPConfig).
     
  7. collimic

    collimic New Member

    May be we could look into putting this into the next update / upgrade
    I cannot be the only one that needs this option.

    Thanks for all the information.
     

Share This Page