Ad Widget

Collapse

Web interface port, other than 80

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vinzz
    Junior Member
    • May 2011
    • 2

    #1

    Web interface port, other than 80

    Is it possible to alter the web gui's port from 80, to say, 8008 ?
  • vinzz
    Junior Member
    • May 2011
    • 2

    #2
    Of course we can edit apache's ports.conf: http://www.cyberciti.biz/faq/linux-a...ort-ipbinding/

    But I want to disable port 80 only for Zabbix altogether. All other sites must keep listening on port 80. Anyone?

    Comment

    • Rudd
      Member
      • Mar 2011
      • 69

      #3
      You can add 8008 to the ports.conf and apache will listen on both ports.

      Your virtualhost setup would look something like:

      <VirtualHost *:80>
      ServerName www.yourothersite.com:80


      <VirtualHost *:8008>
      ServerName zabbix.yourdomain.com:8008

      Comment

      • markclark
        Member
        • Apr 2011
        • 70

        #4
        hi,

        ive tried the link and as follows but says when you restart apache2 there is a [warn] and it wont work.

        must be some other config file or something that needs changing?

        Comment

        • Bennie
          Member
          Zabbix Certified Specialist
          • Feb 2010
          • 73

          #5
          can you post the warning please.

          Comment

          • markclark
            Member
            • Apr 2011
            • 70

            #6
            Error is below.

            [warn] NameVirtualHost *.8008 has no VirtualHosts

            If i leave the NameVirtualHost as *:80 as default and add the listening port of 8008 then nothing works at all including the Zabbix URL.

            Comment

            • Bennie
              Member
              Zabbix Certified Specialist
              • Feb 2010
              • 73

              #7
              Marc,

              create a configfile something like this

              Code:
              NameVirtualHost *:8008
              Listen 8008
              
              <VirtualHost *:8008>
                  ServerName yourfqdnhere
              
                  DocumentRoot <fullpathtodir>
              
                  <Directory fullpathtodir >
                      AllowOverride All
                      Options +FollowSymLinks
                  </Directory>
              
                  ErrorLog /var/log/apache2/zbx-error.log
                  CustomLog /var/log/apache2/zbx-access.log combined
              
              </VirtualHost>
              This should work, leave the ports.conf file alone and arrange it in your sites definitions. Make sure its last in the list to load for apache

              Comment

              • markclark
                Member
                • Apr 2011
                • 70

                #8
                thanks for the response. sorry for my lack of understanding in Ubuntu but when you suggest make a config file, is there any specific way i should do this or directory?

                thanks.

                Comment

                Working...