Website disabled with custom page and redirect.

Discussion in 'Feature Requests' started by Herbert, Aug 5, 2006.

  1. Herbert

    Herbert New Member

    Is it posible to make a submit for disable websites in ISPConfig admin with a redirect to a custom page?
    Example submit: AliasMatch ^/.*$ /var/www/disabled/disabled.html
    It will be nice in the future..
     
  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Have you tried the Apache Directives field in ISPConfig? You can put your custom directives there.
     
  3. Herbert

    Herbert New Member

    Hi Falko,
    i'm use alway's the Apache Directives field in ISPConfig.
    I use: AliasMatch ^/.*$ /path/disabled/disabled.html

    And for hotlinking:

    <FilesMatch "\.(gif|jpe?g|png|bmp|pdf|zip|rar|mp3|js)$">
    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?domain.tld [NC]
    RewriteCond %{REQUEST_FILENAME} !nohotlinking.gif$
    RewriteRule .*\.(gif|jpe?g|png|pdf|bmp|pdf|zip|rar|mp3|js)$ http://domain2.tld/nohotlinking.gif [R]
    </FilesMatch>
    </Directory>
    </VirtualHost>
     
  4. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Please post the vhost configuration from Vhosts_ispconfig.conf here.
     

Share This Page