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

Apache Newb!! Pls Help!

Discussion in 'Networks & Internet Connectivity' started by Oracle, 26 Mar 2006.

  1. Oracle


    Joined: 17 Jan 2006

    Posts: 1,971

    Location: Haskins

    Hi all, How do I set up the config in apache so that when someone types in my IP address, apache shows them my page on my home server!?


    I'm behind a Belkin Router and have opened port 80

    I have also opened (now) port 80 on Windows Firewall...

    Is there anything else I need to do!?

    Last edited: 26 Mar 2006
  2. Phil99


    Joined: 29 Oct 2004

    Posts: 10,900

    Install Apache, make sure it's running and replace the files in your htdocs with your website files (or redirect your htdocs variable to the location of the files)

    That's pretty much it.

    Dig around in httpd.conf for the more advanced options.
  3. Oracle


    Joined: 17 Jan 2006

    Posts: 1,971

    Location: Haskins

    ok, i'm runnging Apache through EasyPHP...

    the 'www' folder is within the easyphp folder AND NOT the apache folder.

    So, i've set up the config file to read on port 80, and virtual servers are as follows

    NameVirtualHost my external ip in here
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for requests without a known
    # server name.
    <VirtualHost my external ip in here >
       DocumentRoot /www/docs/
       ServerName pineroom.com
    but is the 'DocumentRoot' location correct seeing as the 'www' folder is not in the 'Apache' folder?

  4. tolien


    Joined: 16 May 2003

    Posts: 25,368

    Location: ::1

    Unless it's a *nix box, and your stuff is at /www/docs/, you need to change the DocumentRoot statement.