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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th November 2009, 16:52
titobustillo titobustillo is offline
Junior Member
 
Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Change defaulto port to another than 80

I am installing a web server, and my Company rules demands that port 80 cant be used.
So, with Ispconfig 3, I can see that port 80 is the default, and nothing I can do works to change it to another port (ex. 25070).
How can I do it?
Thanks in advance
Reply With Quote
Sponsored Links
  #2  
Old 25th November 2009, 01:02
linuxbastard linuxbastard is offline
Junior Member
 
Join Date: Jul 2008
Location: Marikina City, Philippines
Posts: 22
Thanks: 3
Thanked 2 Times in 2 Posts
Send a message via MSN to linuxbastard Send a message via Yahoo to linuxbastard Send a message via Skype™ to linuxbastard
Default what have you already done?

Can you tell me what you've tried doing to change the port?

changing the default port for the web server sort of defeats the purpose because ISPconfig was supposed to be a control panel for a hosting environment. What exactly did you want to use it for?
Reply With Quote
  #3  
Old 25th November 2009, 09:27
titobustillo titobustillo is offline
Junior Member
 
Join Date: Oct 2009
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Our company needs to deploy one server to be a web server to the intranet company, and some web pages must be visible from internet. So, we need it to be a ftp server too. I think that ISPconfig is a good chance to control this server. Now, the difficult is that port 80 will be closed, so we need to work with ispconfig and the webs through another port.
Reply With Quote
  #4  
Old 25th November 2009, 13:47
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

You can change the port in the file /usr/local/ispconfig/server/conf/vhost.conf.master and /usr/local/ispconfig/server/conf/apache_ispconfig.conf.master
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 25th November 2009, 13:57
linuxbastard linuxbastard is offline
Junior Member
 
Join Date: Jul 2008
Location: Marikina City, Philippines
Posts: 22
Thanks: 3
Thanked 2 Times in 2 Posts
Send a message via MSN to linuxbastard Send a message via Yahoo to linuxbastard Send a message via Skype™ to linuxbastard
Default reconfigure ports via apache config

I guess it is possible.

Don't have a clue on how to do it but I'm guessing it involves editing the vhosts file for each server (/etc/apache2/sites-enabled). Don't know how to make apache listen to a specific port, but again I'm guessing this one involves editing the apache configuration.

Hoping Till or Falko could help out.
Reply With Quote
  #6  
Old 25th November 2009, 14:01
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

Never edit any file in sites-enabled manually! All you changes would be removed automatically. As I told you above, you will have to change the template files.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 25th November 2009, 14:23
linuxbastard linuxbastard is offline
Junior Member
 
Join Date: Jul 2008
Location: Marikina City, Philippines
Posts: 22
Thanks: 3
Thanked 2 Times in 2 Posts
Send a message via MSN to linuxbastard Send a message via Yahoo to linuxbastard Send a message via Skype™ to linuxbastard
 
Default selective port change

Hi Till,

what if I wanted one vhost to listen on port 80 and another to listen on a different port? As I understand it, changing the templates affect all the sites?

Can you give us an excerpt on how to go about changing the template for a situation like this?

Thanks again.

Found additional info here:
http://httpd.apache.org/docs/2.2/bind.html

Quote:
The Listen directive does not implement Virtual Hosts - it only tells the main server what addresses and ports to listen on. If no <VirtualHost> directives are used, the server will behave in the same way for all accepted requests. However, <VirtualHost> can be used to specify a different behavior for one or more of the addresses or ports. To implement a VirtualHost, the server must first be told to listen to the address and port to be used. Then a <VirtualHost> section should be created for the specified address and port to set the behavior of this virtual host. Note that if the <VirtualHost> is set for an address and port that the server is not listening to, it cannot be accessed.
So you just have to set the main apache config to listen to your port and change the vhost config to the appropriate port as well. I tested changing the vhost config and even after a server restart the ports on the vhost config file remained the same. So this might work for you.

Last edited by linuxbastard; 28th November 2009 at 10:01.
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
Two FTP Issues: Change Port and Alerts jonwatson Installation/Configuration 3 13th February 2009 13:49
How to change Port 25 to different Port # happz Installation/Configuration 1 6th October 2008 14:42
Mail Question: installed smf forum on centos perfect server setup with ispconfig happz Installation/Configuration 7 22nd August 2008 13:15
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 16:33
How to install BFD (Brute Force Detection) domino Tips/Tricks/Mods 9 31st March 2006 22:40


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


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