Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Need Help - One Apache Configuration

  1. #1
    UltraFlux is offline Member
    Join Date
    Jan 2006
    Posts
    14
    Rep Power
    9

    Default Need Help - One Apache Configuration

    Originally Posted by hofo
    Since M4 doesn't use zmiptables, what's the new procedure? Or does Zimbra now just pickup whatever IP you are on?
    Im a bit stuck right now.

    I initially had an apache server running which I shutdown when I started the Zimbra install. Now that zimbra is running, I thought I would be able to modify the httpd.conf to include my previous setup.

    How would someone setup:
    www.example.com > web on port 80
    email.example.com > email on port 7070

    Also, my main problem currently is trying to get zimbra apache to listen on port 80. Initially I changed the httpd.conf to include:

    Listen 80
    Listen 7160

    Only I get a startup error saying port 80 is already in use and prior to startup it isnt. So zimbra must be doing this on startup in the background.

    Any help would be greatly appreciated.
    Ultra

  2. #2
    UltraFlux is offline Member
    Join Date
    Jan 2006
    Posts
    14
    Rep Power
    9

    Default

    I noticed on reinstall that

    6) Web server HTTP port: 80

    However whenever you browse to www.example.com you are automatically sent to webmail rather then the actual website.

  3. #3
    UltraFlux is offline Member
    Join Date
    Jan 2006
    Posts
    14
    Rep Power
    9

    Default

    Okay Ive changed http port to 8080 and I'm going to test.

  4. #4
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    Yep this is now part of the installer due to the request of the community. You get to set your web port once and we manage it from then on. No more hacking config files after each upgrade.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  5. #5
    UltraFlux is offline Member
    Join Date
    Jan 2006
    Posts
    14
    Rep Power
    9

    Default

    Yes but you still have to run another apache configuration to host a webserver?

    I should be able to host web and email from this one configuration correct?

    Also would it be possible to run something like this...

    WEB

    ServerAdmin ultra@example.com
    DocumentRoot /var/www/example/www
    ServerName www.example.com
    ErrorLog /var/www/example/logs/error_log
    TransferLog /var/www/example/logs/access_log


    EMAIL
    or diff port
    ServerAdmin ultra@example.com
    DocumentRoot /var/www/example/www
    ServerName email.example.com
    ErrorLog /var/www/example/logs/error_log
    TransferLog /var/www/example/logs/access_log


    Would this work ?

  6. #6
    UltraFlux is offline Member
    Join Date
    Jan 2006
    Posts
    14
    Rep Power
    9

    Default

    (The 1649 ports scanned but not shown below are in state: closed)
    PORT STATE SERVICE
    21/tcp open ftp
    22/tcp open ssh
    25/tcp open smtp
    110/tcp open pop3
    143/tcp open imap
    389/tcp open ldap
    636/tcp open ldapssl
    993/tcp open imaps
    995/tcp open pop3s
    3306/tcp open mysql
    8080/tcp open http-proxy

    (13)Permission denied: make_sock: could not bind to address [::]:80
    no listening sockets available, shutting down
    Unable to open logs

    This is what I dont understand. Why can I bind port 80 when nothing is on it?

    Do I have to disable Zimbra port somewhere?

  7. #7
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    Are you trying as root? To bind to a port less than 1024 you must be root or have sudo access.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  8. #8
    UltraFlux is offline Member
    Join Date
    Jan 2006
    Posts
    14
    Rep Power
    9

    Default

    yes of course i have root, but ./zmcontrol dictates that it much be run with user zimbra. How do I get around this.

  9. #9
    KevinH's Avatar
    KevinH is offline Expert Member
    Join Date
    Aug 2005
    Location
    San Mateo, CA
    Posts
    4,789
    Rep Power
    18

    Default

    Are you trying to use our zimbra apache to run your website on 80? If so this is not something we reccomend or support. You should install your own apache for this purpose. The one the ships with Zimbra is not setup or expected to run on any port < 1024.
    Looking for new beta users -> Co-Founder of Acompli. Previously worked at Zimbra (and Yahoo! & VMware) since 2005.

  10. #10
    UltraFlux is offline Member
    Join Date
    Jan 2006
    Posts
    14
    Rep Power
    9

    Default

    I thought I would be able to add into httpd.conf

    Listen 80 < me
    Listen 7780 < zimbra default

    #ServerName www.example.com:80
    ServerName IP:80 < me

    But I cant

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. apache 2.2 mod_authnz_ldap to zimbra help?
    By jdell in forum Administrators
    Replies: 2
    Last Post: 06-13-2008, 03:11 PM
  2. need advice on configuring zimbra to work with fax server
    By pheonix1t in forum Administrators
    Replies: 0
    Last Post: 07-11-2007, 07:46 PM
  3. Access from zimlet to Apache in the same server
    By ruculmana in forum Zimlets
    Replies: 3
    Last Post: 10-31-2006, 10:26 AM
  4. www Port Conflict/Changing Zimbra Apache Setting
    By macguru in forum Administrators
    Replies: 15
    Last Post: 04-16-2006, 09:06 PM
  5. Replies: 4
    Last Post: 01-18-2006, 11:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •