Questions and answers about how to do stuff
- Posts: 74
- Joined: 16 Oct 2018 05:55
- Location: Portugal
Is there a secure way of changing apache folder?
Code: Select all
This is just an example. Changing this without damaging EFA of course
- Posts: 1179
- Joined: 18 Mar 2015 09:16
It is possible, but I believe that there are quite a number of places where the /mailscanner/ path is hardcoded.
Changing the path is easy, but some things might break until you find every instance of every place where /mailscanner/ is referenced.
I vaguely recall a discussion on this somewhere in the forums, but I am unable to find it. I might be imagining it.
From memory (so my instructions may not be correct as I am not spending a lot of time on this):
The very simplest way would be to change your apache configuration to follow symbolic links. Uou could symlink your /var/www/html/mailscanner directory to /var/www/html/panel. That should allow the /panel/ path to work, and allow EFA to continue to function, but you will still end up with /mailscanner reference urls in different places. You'd have to track them all down one by one until you get what you want.
Also, upgrades might be unhappy.
If you were just to rename the /var/www/html/mailscanner directory to /var/www/html/panel then you'll get immediate feedback on what breaks.
Why do you wish to do this?