Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 3rd November 2005, 18:05
DarkBen DarkBen is offline
Member
 
Join Date: Oct 2005
Posts: 70
Thanks: 1
Thanked 2 Times in 2 Posts
Default

It is right now !

I have done 3 changes in /root/ispconfig/httpd/conf/httpd.conf :

1)
Code:
Port    8080
2)
Code:
<IfDefine SSL>
LISTEN 81
LISTEN 8080
</IfDefine>
3)
Code:
<Virtual_Host_default_:81>
Now all is ok

Thanks a lot Till !
Reply With Quote
Sponsored Links
  #12  
Old 29th September 2006, 17:45
arnaud arnaud is offline
Member
 
Join Date: May 2006
Posts: 40
Thanks: 0
Thanked 1 Time in 1 Post
 
Default update

Hello,

The new configuration works well :
in /root/ispconfig/httpd/conf/httpd.conf
add the following line
Listen 8080

in /home/admispconfig/ispconfig/lib/config.inc.php
change
<code>
if(isset($_SERVER['HTTP_HOST'])){
$go_info["server"]["server_url"] = 'https://'.$_SERVER['HTTP_HOST'];
} else {
$go_info["server"]["server_url"] = "https://exemple.com:81";
}
</code>

to
<code>
if(isset($_SERVER['HTTP_HOST'])){
if(preg_match('/^.+:8080$/', $_SERVER['HTTP_HOST'])) {
$go_info["server"]["server_url"] = 'http://'.$_SERVER['HTTP_HOST'];
} else {
$go_info["server"]["server_url"] = 'https://'.$_SERVER['HTTP_HOST'];
}
} else {
$go_info["server"]["server_url"] = "https://exemple.com:81/";
}
</code>
Certainly regexp can be replaced by substr for speedup.
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


All times are GMT +2. The time now is 09:05.


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