Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th September 2005, 20:04
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default Why does index.html keep getting copied into /web ?

I keep deleting it but "helpfully" index.html keeps getting copied into my web folder.

I've changed the order of the DirectoryIndex in the vhost config so it doesn't prevent access to the website within it, but it still keeps getting copied back - why?

For the record, the actual index page is index.aspx and I'm using mono. Php, cgi and ssi are all disabled on this particular vhost, however another with all these enabled and mono not enabled does the same thing.

Cheers
Reply With Quote
Sponsored Links
  #2  
Old 5th September 2005, 20:53
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,709
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
Default

Quote:
Originally Posted by Zoon
I keep deleting it but "helpfully" index.html keeps getting copied into my web folder.

I've changed the order of the DirectoryIndex in the vhost config so it doesn't prevent access to the website within it, but it still keeps getting copied back - why?

For the record, the actual index page is index.aspx and I'm using mono. Php, cgi and ssi are all disabled on this particular vhost, however another with all these enabled and mono not enabled does the same thing.

Cheers
The default index pages are only copied when the web is initially created. When did ISPConfig copy the index.html page back?
Reply With Quote
  #3  
Old 5th September 2005, 21:02
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

After every httpd restart including when the server reboots. At the moment I don't leave it powered on 24/7 as its only being configured however in a few days it'll be in a datacentre so it will be on 24/7 before too long
Reply With Quote
  #4  
Old 6th September 2005, 09:54
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,709
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
Default

Quote:
Originally Posted by Zoon
After every httpd restart including when the server reboots. At the moment I don't leave it powered on 24/7 as its only being configured however in a few days it'll be in a datacentre so it will be on 24/7 before too long
Thats mysterious, ISPCOnfig does not perform any actions on httpd restart or Server restart. Currently i have no idea why this can happen
Reply With Quote
  #5  
Old 6th September 2005, 10:06
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

Ok, I'll perform further testing to see if I can locate the issue and confirm ... I deleted the file after last power off so lets see if it randomly appears!

It *could* be that it actually appears after every time I edit the vhost config - I was adding "Apache Directives" to get mono working and then restarting httpd.

Would that be more likely to trigger it?
Reply With Quote
  #6  
Old 6th September 2005, 10:14
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,709
Thanks: 819
Thanked 5,321 Times in 4,174 Posts
Default

Quote:
Originally Posted by Zoon
Ok, I'll perform further testing to see if I can locate the issue and confirm ... I deleted the file after last power off so lets see if it randomly appears!

It *could* be that it actually appears after every time I edit the vhost config - I was adding "Apache Directives" to get mono working and then restarting httpd.

Would that be more likely to trigger it?
As far as i know, ISPConfig will only copy the index files if you set the status field in the isp_isp_web table to "n" (new).
Reply With Quote
  #7  
Old 6th September 2005, 11:14
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
Default

Okay - at the moment the server is powered down but I will check this out further once its next powered up again, which will be when it finds its new home at the datacentre
Reply With Quote
  #8  
Old 6th September 2005, 20:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Whenever you make a change for that web site in ISPConfig, then ISPConfig will have a look in your doc root directory and search for an index file, and if it doesn't find one it copies the default index.html to your document root. Currently ISPConfig is looking for almost all extensions (index.html, index.php, index.shtml, ...), but not for index.aspx, so that's why index.html gets copied. You can change that in /root/ispconfig/scripts/lib/config.lib.php in the function make_docroot().
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 6th September 2005, 21:00
Zoon Zoon is offline
Member
 
Join Date: Sep 2005
Posts: 30
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Aha that makes sense!

I'll add a feature suggestion to have index.aspx and index.asp added permanently to that function
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


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


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