WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : How do you specify the default document in Apache?
Categories : Apache, HTTP, Web Servers
Boaz Yahav
Date : Jul 24th 1999
Grade : 2 of 5 (graded 3 times)
Viewed : 36484
File : No file for this code example.
Images : No Images for this code example.
Search : More code by Boaz Yahav
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

QUESTION
========

How do you specify the default document?


ANSWER
======

I'm guessing you mean Apache's DirectoryIndex directive?

DirectoryIndex index.php3 index.html index.htm default.htm

http://www.apache.org/docs/mod/mod_dir.html#directoryindex

(Steven Champeon)



WebServerSpy checks which kind of Webserver is running, Apache, Netscape, Fasttrack, IIS, HTTP-Header, HTTP 1.0, GET, spy, WWW
Categories : HTTP, Network, Apache, PHP, Web Servers
gd libraries make gmake php3 apache-1.3.0 gd1.3 FreeBSD-2.2
Categories : Installation, PHP, Apache, Web Servers
The first step Guest Book ... ^^
Categories : MySQL, PHP, Apache, HTML, HTTP
Installing Oracle support to PHP running in Apache
Categories : PHP Configuration, Apache, Oracle, Databases, Web Servers
phpCMS a content-management-system written in php.
Categories : Content Management, Apache, Complete Programs, Web Servers, PHP
TekBlend internet/intranet engine for building dynamic, customizable, scalable applications for the web
Categories : Perl, Complete Programs, Apache, Templates, Web Servers
PostgreSQL and apache web authentication source.
Categories : Authentication, PostgreSQL, Apache, Web Servers
Caldera Openlinux 1.2 Standard
Categories : Web Servers, MySQL, PHP, Apache, Databases
uaa
Categories : Apache, Apache, Browsers, Calendar
apache_lookup_uri -- Perform a partial request for the specified URI and return all info about it
Categories : PHP, PHP Functions, Apache, Web Servers
How to use your own 404 Error file from .htaccess.
Categories : Apache, Web Servers
include php3 files
Categories : Filesystem, PHP, Apache, Web Servers
Using .htaccess files to authenticate with .htpassword files and with MySql (Works with Apache)
Categories : Authentication, MySQL, Apache, Databases, Web Servers
Logging 404 errors in your custom statistics using Apache and a PHP script.
Categories : Apache, Web Servers, PHP, Errors and Logging
Easy windows installation kit for win 9* PHP4 MySQL Apache phpMyAdmin
Categories : Installation, PHP, MySQL, Apache, Web Servers
 Tony Lau wrote : 347
it`s in apache`s httpd.conf:

DirectoryIndex index.html

replace it with index.php3 or whatever you want
 
 Boaz Yahav wrote :348
or in your .htaccess file...