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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 2nd September 2005, 10:43
linus linus is offline
Junior Member
 
Join Date: Sep 2005
Location: Helsinki
Posts: 10
Thanks: 6
Thanked 1 Time in 1 Post
Default Automatic directory forwarding

Hello and thank you for a very good project this far.

Is there an easy way to add standard directory aliases to a virtual host template that would affect all domains?

It is probably possible manually only via under /etc/apache2/vhosts/Vhosts_ispconfig.conf.

For instance the following directories could be active after adding a domain:
customersdomain.com/mail
customersdomain.com/help
customersdomain.com/admin

Do you have any advice or any solution? Thank you for any answer
Reply With Quote
Sponsored Links
  #2  
Old 2nd September 2005, 11:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,483
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Quote:
Originally Posted by linus
Hello and thank you for a very good project this far.

Is there an easy way to add standard directory aliases to a virtual host template that would affect all domains?

It is probably possible manually only via under /etc/apache2/vhosts/Vhosts_ispconfig.conf.

For instance the following directories could be active after adding a domain:
customersdomain.com/mail
customersdomain.com/help
customersdomain.com/admin

Do you have any advice or any solution? Thank you for any answer
You can have a look in the file:

/root/ispconfig/scripts/lib/config.lib.php

there is a PHP function for building the vhost file when a new web is added (line 1188):

function make_vhost

The vhost file is based on the template:

/root/ispconfig/isp/conf/vhost.conf.master
Reply With Quote
  #3  
Old 2nd September 2005, 20:34
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

You can also add custom Apache directives in the Apache Directives field for each web site in ISPConfig. That way your directives will also be included in SSL vhosts which are not part of the template /root/ispconfig/isp/conf/vhost.conf.master.
__________________
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
PHP Safe Mode & Directory Permissions domino General 10 19th December 2005 18:38
apache user/group won't create directory weedguy Installation/Configuration 6 19th September 2005 23:40
Enable PHP in default directory ProTrooper Installation/Configuration 4 24th August 2005 18:26


All times are GMT +2. The time now is 14:57.


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