apache directives aufrufbar vom meiner Domain aus

Discussion in 'Installation/Configuration' started by conny2540, Jun 16, 2019.

  1. conny2540

    conny2540 Member

    I've just installed Debian 9 with ispconfig 3 (most with default settings). Now I see requests in the logs like this one:
    and others 
    Is that normal ? Did I set something wrong in the host settings? The logs first show a 301 and then a 200 HTTP code and they can be accessed by domain + directive. Is it possible to forbid these queries ? Should that be blocked? Which effect could them have? In my opinion they are ref-spam. The strings come mainly from Google, DotBot and other SERPS.
    On my Ubuntu 16.04. I hadn't such requests, or they were blocked somewhere, so they were not displayed in the logs of the domains.
    Last edited: Jun 16, 2019
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What do you get under these url's? The Apache manual? if yes, search where this global alias for the apache docs is and remove it from apache config, this is not ispconfig specific nor set by ispconfig, so you must search in the global apache config files for this alias and remove it there.
  3. conny2540

    conny2540 Member

    Yes, you can access these requests by mydoman/manual/....... That why I think this is ref-spam. All are the standard installed with the "perfect debian 9 server tutorial with ispconfig". I did not made any change on these files.
    I found the following file, which seems to be responsible for this behaviour, but I don't know what to do with it, or what to change there.

    File: /etc/apache2/conf-enabled/apache2-doc.conf
    Alias /manual /usr/share/doc/apache2-doc/manual/
    <Directory "/usr/share/doc/apache2-doc/manual/">
        Options Indexes FollowSymlinks
        AllowOverride None
        Require all granted
        AddDefaultCharset off
    Several files are working as symlinks. I'm not really an expert to solve this by myself, any suggestion to a noob ? Dismod this file ? Change Links there ?
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Delete the /etc/apache2/conf-enabled/apache2-doc.conf symlink and then restart apache2.
  5. conny2540

    conny2540 Member

    Sorry Till, our posts crossed:

    After new search over the net I found a solution, for others having same problem. Seems that these links where added to newer OS versions. My Ubuntu 16.04. was an upgrade of 14.04. with php 5.6. and afterwards added other php versions. Therefore this problem was not available before.
    Debian 8/9

    just disable the configuration

    a2disconf apache2-doc
    service apache2 reload OR apachectl graceful
    and if you want to uninstall completely the apache2-doc package

    apt remove apache2-doc 
    apt-get in case of Debian > 9

Share This Page