#1  
Old 10th July 2006, 15:36
jockstrap jockstrap is offline
Member
 
Join Date: Jul 2006
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default vhost.conf.master Variables

Hi,

I'm wanting to make permanent changes to the vhost.conf.master file and need and environment/script variable that will return the HOSTNAME of the
virtual host in the following format --> host.domain.com

{SERVERNAME} gives WWW.host.domain:80
But I'm after a {xxxxx} that will not have the "www" and ":80" in it..

Is there such a variable..

Conversley - is there a listing of all variables used in the ispconfig templates that can be referenced ?

Any help appreciated..
Reply With Quote
Sponsored Links
  #2  
Old 11th July 2006, 14:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I think it's better if you change the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php. That's the function that writes the vhosts to the template.
__________________
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
  #3  
Old 13th July 2006, 07:15
jockstrap jockstrap is offline
Member
 
Join Date: Jul 2006
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
I think it's better if you change the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php. That's the function that writes the vhosts to the template.
Thanks falko - took me a while but I actually found this function before you replied and have changed to to work well now!

now I can get all new vhosts to access webmail via webmail.domain and gets
automatically redirected to www.domain:81/webmail

once I get eveything sorted out the way i want, i may post a "How to" on this as I thing a few people were after how to do it!

Thanks...
Reply With Quote
  #4  
Old 29th June 2008, 15:05
juergen71 juergen71 is offline
HowtoForge Supporter
 
Join Date: Jun 2008
Location: Salzburg/Austria
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by jockstrap View Post
now I can get all new vhosts to access webmail via webmail.domain and gets
automatically redirected to www.domain:81/webmail
can u post how u do this? i'm searching for a howto but can't find it.
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
bash script compare variables pattern matching tombstone Programming/Scripts 1 1st June 2006 00:27
Bash: Assigning variables sjau Programming/Scripts 6 22nd May 2006 20:07


All times are GMT +2. The time now is 06:11.


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