Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Feature Requests

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st May 2006, 18:07
martinoc martinoc is offline
Junior Member
 
Join Date: Dec 2005
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Default Error Pages for sharedip vhost

Hi,

I would like to modify the vhost such that
it appears like this:
###################################
#
# ISPConfig vHost Configuration File
# Version 1.0
#
###################################
#
NameVirtualHost xxx.xxx.xxx.xxx:80
<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName localhost
ServerAdmin root@localhost
DocumentRoot /var/www/sharedip

Alias /error/ "/var/www/sharedip/error/"
ErrorDocument 400 /error/invalidSyntax.html
ErrorDocument 401 /error/authorizationRequired.html
ErrorDocument 403 /error/forbidden.html
ErrorDocument 404 /error/fileNotFound.html
ErrorDocument 405 /error/methodNotAllowed.html
ErrorDocument 500 /error/internalServerError.html
ErrorDocument 503 /error/overloaded.html
</VirtualHost>
#

I will need to modify the script that processes /root/ispconfig/isp/conf/vhost.conf.master

I also need to modify the script that creates the sharedip vhost to add the error pages to the sharedip DocumentRoot.

This would provide a slight increase in security and its a bit nicer looking for anyone that visits the sharedip by accident (or the curious)
Reply With Quote
Sponsored Links
  #2  
Old 1st June 2006, 00:30
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
 
Default

Quote:
Originally Posted by martinoc
I will need to modify the script that processes /root/ispconfig/isp/conf/vhost.conf.master
Have a look at the function make_vhosts() in /root/ispconfig/scripts/lib/config.lib.php.

Quote:
Originally Posted by martinoc
I also need to modify the script that creates the sharedip vhost to add the error pages to the sharedip DocumentRoot.
The shared IP document root is created by the ISPConfig installer. Have a look at install_ispconfig/setup2 or install.php.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Mail scan settings for new users timehost Installation/Configuration 3 26th October 2007 12:05
Can't turn of PHP for vhost dmgeurts Installation/Configuration 14 7th November 2005 12:56
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 17:54
Where to Start with Apache2? Vorlon Server Operation 2 20th October 2005 01:12
my default webserver failed Venkatesh.S General 1 25th July 2005 10:11


All times are GMT +2. The time now is 15:51.


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