Results 1 to 4 of 4

Thread: server question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    server question

    im using the WAMP server, and when i do something like

    http://my-ip/test.txt

    (as the text file is in my www folder in the php area)
    i see the test.txt in the browser - no problem, works fine... BUT
    when i do..

    http://my-ip/

    i see a page about the WAMP server which says stuff about my sqlversion, php, apache etc..

    how can i change this so that when i go to http://my-ip/
    it just has a page saying Hello, welcome to the site.

    thats it, nothing else..

    any help would be much appreciated, thanks in advance..

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: server question

    Change the DirectoryIndex directive in your Apache configuration file to some page, such as index.html.

    Go to the Document Root, where the pages are stored, and create/replace an index.html file there.

    What I usually do is to change the DocumentRoot to something like C:\web and place my files there.

  3. #3
    Hyperactive Member nothingofvalue's Avatar
    Join Date
    Jul 2005
    Location
    Arizona
    Posts
    489

    Re: server question

    Just to add to Mendhak, the file is named httpd.conf and is usually in the directory apache/conf

    Also, it sounds like your root is propably setup properly, but WAMP comes preconfigured with a default index page (Xammp does this as well). The easiest thing to do is to go to your root and find the index page and rename it to something else (index2) then create your own index file for a welcome page. Now when you go to http://my-ip you will get you index page and if you need to change settings via the WAMP page you would enter http://my-ip/index2.html or whatever you name it.

    Good luck
    "Imagination is more important than knowledge..."

    Albert Einstein
    -----------------------------------------------
    If my reply helped you then you really were lost, but I still took the time to help, please rate it anyway

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: server question

    There is also a directive called ServerTokens which allows you to control the information the server gives to the users about itself. If you set this to Prod. It will simply say "Apache"
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width