cancel
Showing results for 
Search instead for 
Did you mean: 

Overriding the file-servers.xml file

simon
Champ in-the-making
Champ in-the-making
Alf,

I'm trying to override my file-servers.xml file. I copied the file-servers.xml file to my extension directory on Tomcat (<alfresco>/tomcat/shared/classes/alfresco/extension) and changed the FTP port to 1021. Rebooted Alfresco but the new setting is ignored.

I copied the whole file, striped down the file to the essential parts, renamed the file,…

I tried this on several Alfresco (1.3 and 1.2.0) versions but doesn't seem to accept it. I also noticed a file-servers-custom.xml.sample file, should I use this one to extens the file-servers.xml file? I tried this but without any success…

How should I fix this?
2 REPLIES 2

rivetlogic
Champ on-the-rise
Champ on-the-rise
Hi,

You have to also copy the file network-protocol-context.xml.sample to your extension folder and rename it to network-protocol-context.xml.

If you want to use that file as is then make sure your overrides are in a file called file-servers-custom.xml.

If all you want to do is override the FTP server port then the contents of file-servers-custom.xml should be:

<alfresco-config area="file-servers">

   <config evaluator="string-compare" condition="FTP Server">
        <port>1021</port>
   </config>

</alfresco-config>
Cheers,

–Aladdin

simon
Champ in-the-making
Champ in-the-making
Thanks RivetLogic, this seems to work!

The URL for the link in the CIFS interface does not seem to override with this construction but appart from that it works!