Apache 2.4.3 works fine locally but is not accessable on the net

Discussion in 'Apache' started by wilcal, Nov 14, 2012.

  1. #1
    I am a user and volunteer on the mageia.org linux project

    I'm not all that up to speed on configuring Apache
    so I'm probably more looking for where to ask this
    question. There is a big difference between Apache
    on Mageia 2 ( ver 2.2.23 ) and that which is on
    Mageia 3 ( ver 2.4.3 ). Mageia 2 had a tool which
    allowed one to quickly and easily configure Apache.
    That tool will no longer supported and Mageia has
    decided to let Apache users configure on their own.

    Install is quite easy

    apache
    apache-mod_userdir

    All the necessary RPMs will get installed and
    Apache ( httpd ) will be properly installed.

    httpd will start and be usable on the local LAN.
    Each user on the new box can create a public_html
    folder and put their website in there. Those "websites"
    can be accessed by any box on the LAN. Lets say
    the new M3 box is at 192.168.1.2 then a workstation
    at 192.168.1.4 can select say:

    192.168.1.2/~wilcal/

    and visit the website. So Intranet access is set
    by default. But External ( Internet ) access is
    not possible. Port 80/8080 are forwarded to the
    server. In fact the server features a removable
    replaceable hard drive one of which contains
    Mageia 2 ( Apache 2.2.3 ) and works just fine
    on the Intra and Inter Nets. The actuall IP
    address of the sever is http://72.220.228.245:8080
    Feel free to visit.

    Does anyone here have any experience setting
    up Apache 2.4.3 and what they has to be changed
    in the Apache 2.4.3 configure files to be accessible
    on the Internet?

    At the suggestion of one member of the Mageia Forum
    in the httpd.conf file I made this change:

    From:

    <Directory />
    AllowOverride none
    Require all denied
    </Directory>

    To:

    <Directory "/path/to/root/of/your/php/files">
    AllowOverride None
    # Allow open access:
    Require all granted
    </Directory>

    That did not work. Any suggestions are greatly appreciated.

    Thanks
     
    wilcal, Nov 14, 2012 IP
  2. tio289

    tio289 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello, do u use vhosts? Would you post your configuration files? httpd.conf, port.conf, sites-enabled/*
     
    tio289, Nov 28, 2012 IP
  3. wilcal

    wilcal Member

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    Many thanks for your help. We ( Mageia.com community )
    have just identified the reason for this bug. It was the lack of:

    acl-2.2.51-4.mga3.i586.rpm

    in the system build package. Once acl is installed then the
    server is accessable to the WAN. In a previous version of
    Mageia acl was included.

    Consider this issue resolved and closed.

    Thank you for your help.
     
    wilcal, Nov 28, 2012 IP