index.php

Most commonly desired features to be implemented in PacsOne
Post Reply
Glenn
Posts:18
Joined:Thu Sep 08, 2005 3:03 am
Location:Florida
index.php

Post by Glenn » Sun Nov 13, 2005 3:54 am

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.

pacsone
Site Admin
Posts:3149
Joined:Tue Sep 30, 2003 2:47 am

Post by pacsone » Sun Nov 13, 2005 3:30 pm

Can you elaborate more on the details of what you mean?

Jonathan
Posts:184
Joined:Mon Mar 22, 2004 11:52 am
Location:The Netherlands
Contact:

Re: index.php

Post by Jonathan » Thu Nov 17, 2005 1:34 pm

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.

firedrow
Posts:24
Joined:Fri Mar 02, 2007 2:52 pm
Location:Missouri

Post by firedrow » Thu May 10, 2007 2:49 pm

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/.

Post Reply