Die Funktionalität dieser Website ist durch Wartungsarbeiten eingeschränkt, die Ihr Erlebnis verbessern sollen. Wenn ein Artikel Ihr Problem nicht löst und Sie eine Frage stellen möchten, können Sie unsere Gemeinschaft über @FirefoxSupport auf Twitter, /r/firefox oder Reddit fragen.

Hilfe durchsuchen

Vorsicht vor Support-Betrug: Wir fordern Sie niemals auf, eine Telefonnummer anzurufen, eine SMS an eine Telefonnummer zu senden oder persönliche Daten preiszugeben. Bitte melden Sie verdächtige Aktivitäten über die Funktion „Missbrauch melden“.

Weitere Informationen

setting up central autoconfig files

  • 3 Antworten
  • 1 hat dieses Problem
  • 20 Aufrufe
  • Letzte Antwort von Mike Kaply

more options

We are trying to set up a central autoconfig.js file on a server by Firefox doesn't seem to load the file.

I've read https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig and I think I followed the instructions but when trying to add a new site to network.automatic-ntlm-auth.trusted-uris it doesn't get added.

I changed the autoconfig.js file in "C:\Program Files (x86)\Mozilla Firefox\defaults\pref" and included the two following lines

pref("autoadmin.global_config_url","http://nritcssqlp02/Reports/browse/Custom/mozilla.cfg"); pref("autoadmin.global_config_url.obscure_value", 0);

I also tried making mozilla.cfg --> mozilla.js to see if that would work, but it did not.

I added NSPR_LOG_FILE and NSPR_LOG_MODULES=MCD:5 as environment variables to try and get some logging to see what was going on.

When I open my log file the last line I see is [Main Thread]: D/MCD mcd http request failed with status 191


I tried changing the file from a URL to a location on our file sever and I don't get an error, instead I just get [Main Thread]: D/MCD running MCD url file://nrfsapp/region/donnellyr/FirefoxESR/mozilla.cfg

Nothing after that.

If I'm reading the documentation correctly, I'm supposed to use the autoconfig.js file on the PC to load the local .cfg file as well as point to where my central file is located. If the central file is different it should over-write the local .cfg file.

Is there anything else I can do for testing purposes? Is there something I'm doing wrong here?

Thanks.

We are trying to set up a central autoconfig.js file on a server by Firefox doesn't seem to load the file. I've read https://support.mozilla.org/en-US/kb/customizing-firefox-using-autoconfig and I think I followed the instructions but when trying to add a new site to network.automatic-ntlm-auth.trusted-uris it doesn't get added. I changed the autoconfig.js file in "C:\Program Files (x86)\Mozilla Firefox\defaults\pref" and included the two following lines pref("autoadmin.global_config_url","http://nritcssqlp02/Reports/browse/Custom/mozilla.cfg"); pref("autoadmin.global_config_url.obscure_value", 0); I also tried making mozilla.cfg --> mozilla.js to see if that would work, but it did not. I added NSPR_LOG_FILE and NSPR_LOG_MODULES=MCD:5 as environment variables to try and get some logging to see what was going on. When I open my log file the last line I see is [Main Thread]: D/MCD mcd http request failed with status 191 I tried changing the file from a URL to a location on our file sever and I don't get an error, instead I just get [Main Thread]: D/MCD running MCD url file://nrfsapp/region/donnellyr/FirefoxESR/mozilla.cfg Nothing after that. If I'm reading the documentation correctly, I'm supposed to use the autoconfig.js file on the PC to load the local .cfg file as well as point to where my central file is located. If the central file is different it should over-write the local .cfg file. Is there anything else I can do for testing purposes? Is there something I'm doing wrong here? Thanks.

Alle Antworten (3)

more options

You still need to have an autoconfig file (general.config.file_name) and then set

pref("autoadmin.global_config_url","http://nritcssqlp02/Reports/browse/Custom/mozilla.cfg");

in that file.

autoadmin.global_config_url is not used unless a local cfg file exists.

more options

Thanks for the reply. I did have that, I just didn't post that info. My entire autoconfig.js file located on my Firefox/defaults/pref folder looks like this.

// Any comment. You must start the file with a comment! pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0); lockPref("autoadmin.global_config_url","http://nritcssqlp02/Reports/browse/Custom/mozilla.cfg"); pref("autoadmin.global_config_url.obscure_value", 0);

more options

OK, now I'm really confused.

What you've specifed there shouldn't be in defaults/pref, it should be in mozilla.cfg. IT should look like this:

defaults/pref/autoconfig.js:

pref("general.config.filename", "mozilla.cfg"); pref("general.config.obscure_value", 0);

mozilla.cfg: // Any comment. You must start the file with a comment! lockPref("autoadmin.global_config_url","http://nritcssqlp02/Reports/browse/Custom/mozilla.cfg");

lockPref only works in a cfg file, not autoconfig.js in defaults/pref