Results 1 to 3 of 3

Thread: Configure Apache on eth0 (DHCP) / OS11.1

  1. #1
    Join Date
    Apr 2009
    Location
    Baltimore, MD, US
    Posts
    28

    Default Configure Apache on eth0 (DHCP) / OS11.1

    Hi All,

    I'm having problems binding Apache2 to the DHCP address assigned by my Windows server. Yast -> Network Services -> HTTP Server, Listen Ports and Addresses:
    * All Addresses
    * 80
    * Firewall, Port Open for eth0

    I can get a page served up through http://127.0.0.1/, and http://127.0.0.2/. But no joy on the DHCP address of http://192.168.1.32/ from both the local machine or the LAN. I confirmed the host's address using nslookup. Any ideas?

    Thanks,
    Jeff

  2. #2
    Join Date
    Apr 2009
    Location
    Baltimore, MD, US
    Posts
    28

    Default Re: Configure Apache on eth0 (DHCP) / OS11.1

    The gyrations are a bit beyond Yast.

    euler:~ # cat /etc/apache2/listen.conf
    # [SNIP]

    # DHCP address for eth0 on Euler
    Listen euler.home.pvt:80
    Listen 127.0.0.1:80
    Listen euler.home.pvt:443 https
    Listen 127.0.0.1:443 https
    euler:~ # apache2ctl -t
    Syntax OK
    euler:~ # httpd2 -k restart

  3. #3
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Configure Apache on eth0 (DHCP) / OS11.1

    Just do a

    Listen 80
    or leave listen.conf alone. By default it listens on port 80 on all interfaces which will do what you want, and port 443 is enabled when you pass SSL in APACHE_SERVER_FLAGS in /etc/sysconfig/apache2.

Posting Permissions

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