I need a little help with apache. I have it running and can access the Test Page from the internet. however, i want to go to index.html. When i type in http://ipaddress:port/index.html the index does come up but when i just type http://ipaddress:port/ i get the test page. How do i make it so the index will be the default page. Thank you

I just wrote a WAMP (Windows, Apache, MySql, PHP) HOWTO. It's at the bottom of this thread:
http://www.daniweb.com/techtalkforums/thread26579.html

In that tutorial, you'll see how to modify which filenames Apache treats as "default" pages. But to directly answer you question, this line in your httpd.conf file defines the filenames (and order of priority) Apache uses to determine a default page. It is just a space-seperated list of filenames to use as the default document. For example, you might add " index.php" to the end of this line to support a PHP home page.

[left]DirectoryIndex index.html index.html.var

Also, this line tells Apache what folder is your website root folder. You could change it to "c:/www/" to host your website at that folder.

[left]DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
[/left]

By changing those two directives and restarting your Apache service, you should be able to control where Apache looks for the website root and what filename it will automatically open as your "home" page.

Enjoy the journey.

[/left]

Yeah what he said hehehe

BUt listen I think you should start reading up on apache and how to secure it before you put this live or in production.

Alot of the defualts are not could.


Good Example....

fopen() in php allowing remote access

NOT GOOD

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.