
4th December 2005, 10:48
|
|
Member
|
|
Join Date: Nov 2005
Posts: 33
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Port 80 in config.lib.php
I tryed to find the command make_vhosts() but not found the only thing i did find was this that looked like the right thing to change to have it on another port is
$apache_version = $this->apache_version();
if($apache_version == 1){
$fp_resource_config = "ResourceConfig /dev/null";
$fp_access_config = "AccessConfig /dev/null";
$web_port = "";
$ssl_port = "";
}
if($apache_version == 2){
$fp_resource_config = "";
$fp_access_config = "";
$web_port = ":2121"; < ------------ This is what i changed from 80
$ssl_port = ":443";
Thanks Dave .. please let me know if this is right
|

4th December 2005, 11:17
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Where did you change that? Looks like the make_vhosts() function in /root/ispconfig/scripts/lib/config.lib.php - then it would be ok.
|

4th December 2005, 12:16
|
|
Member
|
|
Join Date: Nov 2005
Posts: 33
Thanks: 0
Thanked 1 Time in 1 Post
|
|
I think i found the right spot ,,,
/etc/httpd/conf/vhosts/
then edit the file Vhosts_ispconfig.conf
after i did that it works ? dont know i cound not find the make_vhosts cmmand in thats file
Dave
|

4th December 2005, 12:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Quote:
|
Originally Posted by ezfilez
I think i found the right spot ,,,
/etc/httpd/conf/vhosts/
then edit the file Vhosts_ispconfig.conf
after i did that it works ?
|
Don't edit Vhosts_ispconfig.conf manually!  Your changes will be overwritten by ISPconfig!
|

4th December 2005, 12:55
|
|
Member
|
|
Join Date: Nov 2005
Posts: 33
Thanks: 0
Thanked 1 Time in 1 Post
|
|
yea i noticed that ... it put the file back to it was original. lol let me dig some more on what you told me
|

4th December 2005, 13:07
|
|
Member
|
|
Join Date: Nov 2005
Posts: 33
Thanks: 0
Thanked 1 Time in 1 Post
|
|
i looked through the whole file i cant realy find anything there is alot of stuff containing port 80 but nothing with make_vhost ... do you want me to past the contents here its a pretty long file
|

4th December 2005, 13:12
|
|
Member
|
|
Join Date: Nov 2005
Posts: 33
Thanks: 0
Thanked 1 Time in 1 Post
|
|
this is the only make_vhost found in the file
function make_vhost($server_id) {
global $mod,$go_info;
$mod->log->caselog("cp -fr $this->vhost_conf $this->vhost_conf~", $this->FILE, __LINE__);
// alte Frontpage-Webs feststellen
if(is_file($mod->system->server_conf["server_path_frontpage"])) exec("grep '## FP-WEB' $this->vhost_conf | cut -f4 -d/ | cut -f2 -db", $old_fp_webs);
$apache_version = $this->apache_version();
if($apache_version == 1){
$fp_resource_config = "ResourceConfig /dev/null";
$fp_access_config = "AccessConfig /dev/null";
$web_port = "";
$ssl_port = "";
}
if($apache_version == 2){
$fp_resource_config = "";
$fp_access_config = "";
$web_port = ":80";
$ssl_port = ":443";
}
|

4th December 2005, 14:23
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Quote:
|
Originally Posted by ezfilez
this is the only make_vhost found in the file
function make_vhost($server_id) {
global $mod,$go_info;
$mod->log->caselog("cp -fr $this->vhost_conf $this->vhost_conf~", $this->FILE, __LINE__);
// alte Frontpage-Webs feststellen
if(is_file($mod->system->server_conf["server_path_frontpage"])) exec("grep '## FP-WEB' $this->vhost_conf | cut -f4 -d/ | cut -f2 -db", $old_fp_webs);
$apache_version = $this->apache_version();
if($apache_version == 1){
$fp_resource_config = "ResourceConfig /dev/null";
$fp_access_config = "AccessConfig /dev/null";
$web_port = "";
$ssl_port = "";
}
if($apache_version == 2){
$fp_resource_config = "";
$fp_access_config = "";
$web_port = ":80";
$ssl_port = ":443";
}
|
Yes, that's the function I'm talking about.
|

4th December 2005, 17:00
|
|
Member
|
|
Join Date: Nov 2005
Posts: 33
Thanks: 0
Thanked 1 Time in 1 Post
|
|
So all i have to do is change this port ? $web_port = ":80";
Thank you for the help
|

4th December 2005, 18:16
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
Quote:
|
Originally Posted by ezfilez
So all i have to do is change this port ? $web_port = ":80";
|
Yes, that should work.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 00:49.
|
Recent comments
1 day 2 hours ago
1 day 5 hours ago
1 day 17 hours ago
1 day 19 hours ago
1 day 23 hours ago
2 days 6 hours ago
2 days 15 hours ago
2 days 17 hours ago
3 days 1 hour ago
3 days 2 hours ago