|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hi.
The only file, that is automatically processed is the index.html. I would like to have it also process index.php and so on. I have changed the DirectoryIndex like so: "DirectoryIndex index.html index.php" but still, if i use the path: "http://myserver/" there is no processing of the index.php file. But if i use this path: "http://myserver/index.php" i can se the file correct. So i need to enable apache 2 to pass the index.php automatically. - pheifel |
|
#2
|
||||
|
||||
|
The DirectoryIndex directive prioritizes the files in the order in which they're listed. So in your config, if you have an index.html file, it will be displayed as the default index even if there's an index.php. Move index.php in front of index.html and it should be the default index. Don't forget to restart apache after making the change.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Web Server Configuration > apache 2 dosn't pass index.php automatically |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|