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

    Banned

    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!?

    Thanks

    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!?

    Thanks
     
    Last edited: 26 Mar 2006
  2. Phil99

    Capodecina

    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

    Banned

    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

    Code:
    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
    
    </VirtualHost>
    
    but is the 'DocumentRoot' location correct seeing as the 'www' folder is not in the 'Apache' folder?

    Thanks
     
  4. tolien

    Caporegime

    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.