Ispconfig with Ubuntu 18.04 How to enable .htaccess

Discussion in 'Installation/Configuration' started by Robin.k, Aug 19, 2019.

  1. Robin.k

    Robin.k Member

    I installed ISPConfig with Ubuntu 18.04, but .htaccess is not working.
    What is the best way to enable .htaccess.

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    htaccess is enabled by default. Is this an Apache or Nginx server? .htaccess is an Apache config file, so it works on Apache servers only and not on Nginx servers.
  3. Robin.k

    Robin.k Member

    How can I check or this server is an apache server. And how can I check or htaccess is enabled?
  4. Robin.k

    Robin.k Member

    Hi, i checked this server is Apache2. And .htaccess is working...but
    When I set in the .htaccess file the text

    <IfModule mod_headers.c>
    Header set X-XSS-Protection "1; mode=block"

    And check or x-xss is working with "" is seems it is not working?

    How to solve this problem?
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Most likely you did not enable the headers module in apache.

    a2enmod headers
    service apache2 restart
  6. Robin.k

    Robin.k Member

    a2enmod headers give me the output....Module headers already enabled
    after service apache2 restart, same problem. x-xss is tested with and is not working?
    What else could cause this problem?

Share This Page