Changing hosted domains from port 80 to 8000

Discussion in 'Installation/Configuration' started by Wizard of Wiring, Oct 24, 2007.

  1. Wizard of Wiring

    Wizard of Wiring New Member

    I have been searching the faq and the forum for articles on making apache/ispconfig listen on port 8000 instead of 80 for hosted domains. The results I have read all seem to be centered around making the ispconfig control panel work on port 80. I have tried adding 'Listen 8000' to either of my httpd.conf files and when I do that if I try to access any hosted domain on port 8000 i get the ispconfig control panel?
  2. Wizard of Wiring

    Wizard of Wiring New Member

    Ok I can see that ispconfig is adding virtual host entries to Vhosts_ispconfig.conf in the /etc/apache2/vhosts directory. I think I understand that ispconfig is an application that merely creates all of the necessary .conf entries when creating new sites. It seems like all I need to figure out is 1) how ispconfig determines which port apache is running on and 2) where to change it. As I mentioned earlier I can add Listen 8000 to ports.conf in /etc/apache2/ports.conf and apache is listening on the port but ispconfig is not reading urls that come in on that port. I have added port 8000 to the ispconfig firewall. If I manually change vhosts files I can get an ip based solution to work on the port. I am just missing a few pieces of the puzzle to have the understanding i need.
  3. falko

    falko Super Moderator ISPConfig Developer

    You must modify the function make_vhost() in /root/ispconfig/scripts/lib/config.lib.php. The ports are hardcoded in there.

Share This Page