Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th November 2012, 19:37
milivoye milivoye is offline
Junior Member
 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to set the default document using apache2.conf

Hallo!
I got ISPConfig3 on my Apache server.
By default it uses index.html as default document for new web-sites, but I'd like to set index.php as the first choice, and to apply that server-wide using apache2.conf
Any clues?

Best regards!
Reply With Quote
Sponsored Links
  #2  
Old 21st November 2012, 09:28
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

Search for the setting "DirectoryIndex" in apache2.conf file and change the order of files listed in that directive so that index.php is before index.html
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 21st November 2012, 17:37
milivoye milivoye is offline
Junior Member
 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hallo Till,

There was no such line in my original apache2.conf
I already tried to add: DirectoryIndex index.php index.html index.htm, but that haven't changed anything.
It's still displaying index.html instead of index.php


Regards!
Reply With Quote
  #4  
Old 21st November 2012, 18:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

This setting can be in one of the include files depending on the linux distribution that you use.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 21st November 2012, 20:06
milivoye milivoye is offline
Junior Member
 
Join Date: Nov 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Hallo Till,

I'm using Ubuntu 12.04.1 LTS, XFCE


Regards!
Reply With Quote
Reply

Bookmarks

Tags
apache, apache2.conf, default document, default page, index

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't start PHPFPM Snow Installation/Configuration 15 13th May 2014 00:34
Postfix Timeout after DATA from some emails treeman Server Operation 13 25th September 2013 12:51
webalizer in ispconfig3 pinguinito General 12 4th October 2012 10:50
yum issues el-sid Installation/Configuration 4 10th August 2011 11:01
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39


All times are GMT +2. The time now is 06:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.