HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Feature Requests (http://www.howtoforge.com/forums/forumdisplay.php?f=17)
-   -   Website disabled with custom page and redirect. (http://www.howtoforge.com/forums/showthread.php?t=6022)

Herbert 5th August 2006 09:40

Website disabled with custom page and redirect.
 
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..

falko 6th August 2006 13:52

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

Herbert 6th August 2006 19:03

Quote:

Originally Posted by falko
Have you tried the Apache Directives field in ISPConfig? You can put your custom directives there.

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>

falko 7th August 2006 13:26

Please post the vhost configuration from Vhosts_ispconfig.conf here.


All times are GMT +2. The time now is 16:56.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.