1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache is Making me Want to Throw my Computer Out the Window, Please Help.

Discussion in 'General Scripting Chat' started by Noah Hawryshko, Nov 7, 2016.

  1. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    728
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    EDIT: Please let me know if I've forgotten to remove any identifying information in my Apache configuration files.

    Hi BHW...

    So Apache 2.4 is being a complete jerk, and not allowing non-localhost traffic under any circumstances, no matter what I do. I've tried everything under the sun and nothing is doing any good whatsoever.

    I have 2 configurations of Apache, one that's working perfectly fine and another that isn't. I want to make the one that isn't working work like the one that is working. The one that isn't working isn't allowing any non-localhost traffic yet came installed with wamp which I'm trying to leverage, and the one that is working is an independent install that I've configured to allow all traffic. Configuring the wamp Apache in a way that seems to me to be exactly the same is still not allowing any non-localhost traffic through

    Here is the configuration file from the working Apache server:

    http://pastebin.com/t32K8MXX

    And here is the non-working configuration from the wamp apache server, which isn't working:

    http://pastebin.com/jhyryiZ9

    Any help would be greatly appreciated. Thanks...
     
  2. virtualpurity

    virtualpurity Jr. VIP Jr. VIP

    Joined:
    Nov 12, 2012
    Messages:
    764
    Likes Received:
    442
    Occupation:
    SEO, Hosting
    Location:
    /root
    Home Page:
    What do you mean dosent accept non-localhost traffic ?

    What is the error page ? And did you look at the iptables ? Opened port 80 ?
     
  3. Asif WILSON Khan

    Asif WILSON Khan Executive VIP Jr. VIP

    Joined:
    Nov 10, 2012
    Messages:
    12,166
    Likes Received:
    33,742
    Gender:
    Male
    Occupation:
    Fun Lovin' Criminal
    Location:
    London
    Home Page:
    You have to set Listen to the correct IP and Port

    Search for "Listen 12.34.56.78:80" and replace with your router's IP

    Search for "ServerName" and do the same:

    Sorry just skimmed it so it may not be the problem.
     
  4. littlewebdragon

    littlewebdragon Jr. VIP Jr. VIP

    Joined:
    Dec 30, 2007
    Messages:
    1,708
    Likes Received:
    1,041
    Occupation:
    Occupation
    Location:
    Location
    So, just to confirm, you have your installation inside of C:/root that is working correctly (independent) and it allows you to access for example from other PCs in your network or remotely, right? Other one inside of c:/wamp/www folder does not work correctly and does not allow? So the one in WAMP folder is causing the issues? Is this correct?

    Ok, while waiting, there is a button on WAMP saying "Put Online" that will sort things out for you.

    What it does actually is part where it says:
    # onlineoffline tag - don't remove​

    Turns (this is when access is granted):
    Require all granted​

    To (this is when access is allowed only local)
    Require local​

    Hope it helps :) ;)
     
    Last edited: Nov 7, 2016
  5. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    728
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    Let me go over my config one more time and make sure I'm giving correct responses to all these comments. Give me 30 minutes or so.
     
  6. littlewebdragon

    littlewebdragon Jr. VIP Jr. VIP

    Joined:
    Dec 30, 2007
    Messages:
    1,708
    Likes Received:
    1,041
    Occupation:
    Occupation
    Location:
    Location
    Sure thing, while you are on to that, just try and add under this line:
    # onlineoffline tag - don't remove
    This statement:
    Require all granted​

    Restart wamp (or just apache) and try again (or find a Put online button on WAMP), it should be there. This is if I've got right what you are trying to achieve.
     
  7. Noah Hawryshko

    Noah Hawryshko Senior Member

    Joined:
    Apr 28, 2016
    Messages:
    871
    Likes Received:
    728
    Gender:
    Male
    Occupation:
    Biotechnology Engineer at Silph. Co, Saffron
    Location:
    Kanto
    FINALLY Figured it out.

    There's a vhosts file that needs to be edited to allow non-localhost access that wasn't in the documentation of wamp or apache, along with the main file, the firewall rule, the proper AWS zone configuration, the proper port binding, the proper server name, the proper interface, and the hidden menu that pops up a button program-level which says "go online".

    10/10, super secure, especially when I have to do 20 things to get it to allow any traffic other than me. :/

    Thanks so much for your help guys. Never use Wamp, it's garbage.
     
  8. littlewebdragon

    littlewebdragon Jr. VIP Jr. VIP

    Joined:
    Dec 30, 2007
    Messages:
    1,708
    Likes Received:
    1,041
    Occupation:
    Occupation
    Location:
    Location
    At least your PC is safe. For now... :)
     
    • Thanks Thanks x 1