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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th June 2009, 06:23
clanx clanx is offline
Junior Member
 
Join Date: Oct 2007
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default making index.php as default DirectoryIndex

How do I set permanently the default DirectoryIndex is to index.php
(ISP Site -> Options -> DirectoryIndex )

I would like index.php on top of the rest :

index.php
index.html
index.htm
index.php5
index.php4
index.php3
index.shtml
index.cgi
index.pl
index.jsp
Default.htm
default.htm
Reply With Quote
Sponsored Links
  #2  
Old 28th June 2009, 14:23
madmucho madmucho is offline
Senior Member
 
Join Date: Oct 2006
Location: Czech republic, Karlovy Vary
Posts: 158
Thanks: 78
Thanked 11 Times in 11 Posts
Send a message via ICQ to madmucho
Default Edit template

I thing you can edit vhost template file in ispconfig
Code:
/root/ispconfig/isp/conf/vhost.conf.master
copy and edit to
Code:
/root/ispconfig/isp/conf/customized_teplate/vhost.conf.master
in template you can see tag {DIRECTORYINDEX} just paste there you directory tag information. Then edit site in ispconfig and click save, apache vhost will be recreated with your template and changes.

i dont know where variable {DIRECTORYINDEX} is filled but you can delete and put there you vhost directive.

beware this changes will efect sites which dont have PHP JSP and others enabled!!
Reply With Quote
  #3  
Old 2nd July 2009, 11:13
clanx clanx is offline
Junior Member
 
Join Date: Oct 2007
Posts: 10
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi madmucho,

Thanks for the reply and suggestion.

The workaround step you provides sounds workable but it will break the flexibility of the system.

I wonder is there other way ?
Reply With Quote
  #4  
Old 3rd July 2009, 14:56
id10t id10t is offline
Senior Member
 
Join Date: Nov 2008
Posts: 240
Thanks: 2
Thanked 22 Times in 22 Posts
Default

The DirectoryIndex directive can handle multiple file types - if the first isn't found, the next is tried, and so on.

I've just tried grepping around in my /root/ispconfig and I can't find where it is actually set - I can see the function calls to work with it, but I can't find where it is defined.

You can change it for an individual site by editing the site and looking at the "options" tab.
Reply With Quote
  #5  
Old 4th July 2009, 01:01
madmucho madmucho is offline
Senior Member
 
Join Date: Oct 2006
Location: Czech republic, Karlovy Vary
Posts: 158
Thanks: 78
Thanked 11 Times in 11 Posts
Send a message via ICQ to madmucho
 
Default Found

Quote:
Originally Posted by clanx View Post
Hi madmucho,

Thanks for the reply and suggestion.

The workaround step you provides sounds workable but it will break the flexibility of the system.

I wonder is there other way ?
Maibe this help
Code:
grep optionen_directory_index /home/admispconfig/ -R
Code:
/home/admispconfig/ispconfig/lib/classes/ispconfig_isp_web.lib.php:      $go_api->db->query("UPDATE isp_isp_web SET optionen_directory_index = 'index.html\r\nindex.htm\r\nindex.php\r\nindex.php5\r\nindex.php4\r\nindex.php3\r\nindex.shtml\r\nindex.cgi\r\nindex.pl\r\nindex.jsp\r\nDefault.htm\r\ndefault.htm' where doc_id = '$doc_id'");
That is part of class which update directory index specification for web vhost file, .
Here you can change default set of of option directory directive.
Edit at you own risk.
Reply With Quote
Reply

Bookmarks

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
Intel 82815 Video Card & Ubuntu 8.10 harvey527 Kernel Questions 8 5th November 2010 14:51
Admin Program for Virtual Users and Domains Postfix courier etc...(Ubuntu 8.04)? the1rob HOWTO-Related Questions 11 4th August 2009 04:54
can't help ispconfig to install please help steve51184 Installation/Configuration 17 20th February 2009 10:37
ISPConfig install issues... flyingaggie Installation/Configuration 2 18th July 2008 10:46
Exim MTA dazblade Server Operation 4 16th July 2007 18:42


All times are GMT +2. The time now is 10:39.


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