|
-
Sep 19th, 2005, 05:34 AM
#1
Thread Starter
Frenzied Member
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..
-
Sep 19th, 2005, 09:18 AM
#2
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.
-
Sep 19th, 2005, 12:14 PM
#3
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
-
Sep 19th, 2005, 04:53 PM
#4
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"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|