So bear with me on this…
I have another web application in which the login page is very similar to FileCloud - a simple login box on top of a single background image…
Our department controls a large number of picturistic buildings and parks. What I did there was to create a simple PHP script which returned a random picture of about 70+ images from with a directory as an image. Then I inserted a Alias command in the Apache config which redirected the background image to my script.
The result was that each user was presented with a different random image everytime they logged in, and they LOVED it! So much in fact I have to work with management because I was constant contributes from staff.
Since FileCloud already uses Apache and PHP, I thought it would be simple to insert an addiditonal conf file into the configuration and accomplish this. I was wrong.
The plan was to add a file called background.php and a folder called background to the root directory ( C:\xampp\htdocs ) and create a new conf file like ( C:\xampp\apache\conf\extra\httpd-background.conf ):
AliasMatch ".*/background.jpg" "C:/xampp/htdocs/background.php"
And add this to the main httpd.conf file…
Before I could even look for default background image, I found that I was unable to run my background.php script. I’m not an Apache guru, but I think the problem is that FileCloud’s Apache configuration is locked down and won’t let anything run from the root directory.
I also think that the background image is not just a simple file, rather it looks like it is the output of your own script…
Like I said, I’m not an Apache guru, and rather then keep hacking the default installation, I was hoping someone could give me some suggestions on how to accomplish this.
Thanks
Bob