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?
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
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).
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
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().
Aha that makes sense! I'll add a feature suggestion to have index.aspx and index.asp added permanently to that function