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
  #1  
Old 13th March 2007, 20:08
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 426
Thanks: 34
Thanked 26 Times in 21 Posts
Send a message via ICQ to radim_h
Default How to Run ISPconfig on both ports 80 & 443 on reserved IP?

Hello,
can somebody give me an advice please?

i have more IP adresses and i'd like to have one of them reserverd just for ISPConfig and Run it on port 80 together with 443 and let the customers choose if they wants to encrypt theirs connection.

How should my /root/ispconfig/httpd/conf/httpd.conf look ?


Or is there possibility to run two login pages thru ISPconfig apache
which one of them (on port80) will have just added link "encrypt you communication" which will redirect to second one on port 443 ?
Reply With Quote
Sponsored Links
  #2  
Old 14th March 2007, 08:53
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 13 Times in 11 Posts
Default

The problem is that ispconfig has it's own httpd service and runs as 'adminispconfig' user, not www/apache/nobody that most apache configs run as.

The other problem is that both the real apache and ispc apache want to bind to port 80 and they can't if the other gets it first.

You then have the option of either proxy forward depending on the ServerName and pass it to the real service (so real apache proxyforwards to ispconfig setup) or just use the port 443 port and begone with the port 80 idea.

The example below is a port 81 non secure with a proxy from the real apache server mapping an external name of (ispconfig.yourhostingdomain.com:80) to ispconfig (remember, 81 isn't SSL as it won't work).

PHP Code:
<VirtualHost *:80>
ProxyRequests Off

# Port 81 is NON SSL of ispconfig
ProxyPass http://localhost:81/
ProxyPassReverse http://localhost:81/

ProxyPreserveHost On
ServerName ispconfig
.yourhostingdomain.com
ServerAdmin webmaster
@yourhostingdomain.com
CustomLog 
/var/log/httpd/ispc-access.log combined
</VirtualHost
Otherwise, 443 is just port 81 changed in the ispconfig httpd.conf
__________________
www.emperor-it.com for ISPConfig mods/hacks
Reply With Quote
  #3  
Old 14th March 2007, 09:10
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

The apache webserver allows it to bind it to a special IP. If you bind the ISPConfig webserver to one IP and your apache webserver to all other IP addresses, this should work. I dont remember the exact apache config syntax, please have a look at the apache manual for details.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 14th March 2007, 11:20
djtremors djtremors is offline
Senior Member
 
Join Date: Apr 2006
Location: Sydney
Posts: 278
Thanks: 0
Thanked 13 Times in 11 Posts
Default

I think it's something like

Listen 1.2.3.4:80
Listen 2.3.4.5:80
Listen 3.4.5.6:80
Listen 4.5.6.7:80

then

<VirtualHost 1.2.3.4:80>
</VirtualHost>


<VirtualHost 2.3.4.5:80>
</VirtualHost>

etc.
__________________
www.emperor-it.com for ISPConfig mods/hacks
Reply With Quote
  #5  
Old 14th March 2007, 13:08
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 37,015
Thanks: 840
Thanked 5,652 Times in 4,461 Posts
Default

Yes, listen should work well. My first thought was the BindAddress syntax but Listen might be even better.

Here is the apache doc as reference:

http://httpd.apache.org/docs/1.3/bind.html
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 22nd March 2007, 20:34
radim_h radim_h is offline
Senior Member
 
Join Date: Jan 2007
Location: Prague, Czech
Posts: 426
Thanks: 34
Thanked 26 Times in 21 Posts
Send a message via ICQ to radim_h
 
Default thank you

i'm going to try this...
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
ISPconfig on port 443 ? olaus Installation/Configuration 8 29th July 2007 13:37
ispconfig on port 443 (standard secure port) gjcomputer Installation/Configuration 8 1st October 2006 14:38
Need a Server to run ISPCONFIG on ! Look Here... jockstrap Tips/Tricks/Mods 23 27th July 2006 12:46
what user and group does ispconfig run under funkyade Installation/Configuration 4 17th May 2006 21:56
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 16:16


All times are GMT +2. The time now is 19:35.


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