Page 1 of 1

index.php

Posted: Sun Nov 13, 2005 3:54 am
by Glenn
Can future releases have an index.php so the program will auto start when the folder is accessed and not show a listing of the files?
Just have index.php run login.php as an example. So I will not be modifing you program files.

Posted: Sun Nov 13, 2005 3:30 pm
by pacsone
Can you elaborate more on the details of what you mean?

Re: index.php

Posted: Thu Nov 17, 2005 1:34 pm
by Jonathan
Glenn wrote:Can future releases have an index.php so the program will auto start when the folder is accessed and not show a listing of the files?
Just have index.php run login.php as an example. So I will not be modifing you program files.
You can easily solve this by configuring your Apache correctly:

Modify the following (default line)

DirectoryIndex index.html index.html.var

line to read:

DirectoryIndex login.php index.html index.html.var

Or remove all the entries that you don't need and only put the login.php behind the DirectoryIndex keyword. See also themod_dir section of the Apache Manual.

Posted: Thu May 10, 2007 2:49 pm
by firedrow
I just make an index.php that says:

Code: Select all

<?php
	if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
		$uri = 'https://';
	} else {
		$uri = 'http://';
	}
	$uri .= $_SERVER['HTTP_HOST'];
	header('Location: '.$uri.'/pacsone/');
	exit;
?>
Something is wrong with your index redirect.
Then again, I also add an alias in httpd.conf to point to my pacsone install and make it /pacsone/.