How can I set a different proxy server for different networks in user.js

I need to automatically set the proxy configuration depending on the network I am connected to. Can this be done through the user.js?
Simple logic would be:-
if IP=10.20.30.0 use proxy A
if IP=172.18.19.0 use proxy B
else DIRECT
Thanks
Leon

No, you can't do it that way.<br />
You could create a set of files user.js and use a bat or cmd file to copy the file with the proxy setting that you want to use to user.js and then start Firefox.
<pre><nowiki>cd <path to profile folder>
delete user.js
copy user-proxy1.js user.js
start "" "C:\Program Files\Mozilla Firefox\firefox.exe"
</nowiki></pre>
You can also use an extension.
*FoxyProxy: https://addons.mozilla.org/firefox/addon/2464
*QuickProxy: https://addons.mozilla.org/firefox/addon/1557
*SwitchProxy: https://addons.mozilla.org/firefox/addon/125

Similar Messages

  • How do I set up a proxy server for webmail services to assist in migrating from NMS 4.15p6 on NT to iMS 5.1 on HP-UX.

    I want to have minimal if no downtime at all when moving the message store. iPlanet support hinted at an "unsupported" proxy server solution, and would give no further information. I am running the MMP with 5.1 and that supports IMAP and POP migration, but I need support for webmail services as well to complete the migration from NT to UNIX with minimal distruption of thousands of users. I am using the MoveUser utility to move the message store in hopes that will clear up some store corruption we have been seeing.

    To get this in a 'supported' fashion you might want to wait until the iMS 5.2 release. iPlanet has said this release would include a webmail proxy/mmp server to do exactly what you desire.
    A proxy server would not be a solution to your problem as it would have to have access and knowledge to the users mailhost attribute to determine to which host to route the webmail connection. The webmail proxy/mmp will have this functionality.
    You might want to contact your iPlanet rep about this product and maybe you could get a copy of it as part of a beta program. I know iPlanet is always looking for oppourtunities for feedback like this.
    -Chris

  • How can i set a global error page for all error cod

    how can i set a global error page for all error code?
    i don't want to leave a long list in the web.xml file.could any one help me?
    thanks

    If u have a common Error JSP named as ErrorPage.jsp
    You need to have the following piece of code in the JSP as :
    <%@ page isErrorPage ="true"%>
    This makes it as the Common Error Page for the Application. Now all you need to do is from other JSP's throw the Exception to teh container. The container will redirect to this Page and process accordingly.
    Thanks and regards,
    Pazhanikanthan. P

  • HT201269 How can I set up same back up for all my apple devices

    How can I set up same back up for all my apple devices
    I use online tools all from apple devices 2 iPhone 5g &amp; 5s &amp; iPad mini
    I want same back up for all devices
    Specially I use appointments app
    I don't want to loose any appointment
    So can I use same backup for I devices
    Please help !,,,,,

    You can also just use the same restore backup for all your  devices you will get the same notifications BUT you have to click on Sync over wifi so it can work if not they will only work when you sync them when you sync on computer

  • How can I see if my program is for more than one user? We think we have bought in design for more users, but can not find out how to get in for more than one?

    How can I see if my program is for more than one user? We think we have bought in design for more users, but can not find out how to get in for more than one?

    If you bought a CC for team, you can log in at http://adobe.com and insert the e-mail that you gave at the moment at the purchase and than you can manage and see you product/plan/team.
    If I was not clear you can use the following link to help you solving your issue:
    Creative Cloud Help | Manage your Creative Cloud for teams membership
    If your not clear about this situation, contact with an agent of Adobe, by chat or phone. Use the following link to see the type of support you have on this matter:
    http://adobe.com/getsupport
    I think this will help you.
    Regards

  • My wife and I have been using the same iTunes account, but would like to have separate apps on our phones.  How can I set up a separate account for her?

    My wife and I have been using the same iTunes account for both our iPhones, but she wants separate apps from mine.  How can I set up a second account in her name, delete the apps on her phone and start from scratch with just the apps she wants on her phone?

    If you have the old phone, connect it to iTunes, right click on the device, and choose transfer purchases.  If you no longer have the old phone, I don't believe there is a way to recover them, as they were on your original device.

  • How can I set a permanent default language for Firefox's spellcheck feature, so that I don't have to keep manually selecting the spellcheck language I want?

    I have a few languages installed, and Firefox's spellcheck seems to decide which language to use ''at random''. So I have to keep manually selecting the language I want. 99% of the time I want English. So how can I set English as a permanent default language, and leave the manual selection for those infrequent occasions when I want another language spellchecked?

    Firefox should store the last used dictionary in the spellchecker.dictionary pref that you can check on the about:config page.
    *http://kb.mozillazine.org/about:config
    If you do not keep changes after a restart then see:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.org/kb/Preferences+are+not+saved
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode

  • Can i set a node manager serve for 2 domain on one machin??

    My question is simple.
    I installed webcenter suite and soa suite in a machine using difference linux user and difference middleware home.
    and I want to set a node manager server for two domains (soa_domain and webcenter_domain).
    Is is possible?
    When I tried to register domain list in node manager domain list using nmEnroll() of wlst, it failed.
    please check following logs in 7101 is admin server port of soa domain and I ran node manager on webcenter domain.
    Thanks in advance.
    BmW.
    ~~~~~~~~~~~~~~~~~~
    wls:/offline> connect()
    Please enter your username :weblogic
    Please enter your password :
    Please enter your server URL [t3://localhost:7001] :t3://localhost:7101
    Connecting to t3://localhost:7101 with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'soa_domain'.
    Warning: An insecure protocol was used to connect to the
    server. To ensure on-the-wire security, the SSL port or
    Admin port should be used instead.
    wls:/soa_domain/serverConfig> wls:/soa_domain/serverConfig> wls:/soa_domain/serverConfig> wls:/soa_domain/serverConfig> nmEnroll('/u02/app/soa11g/middleware/user_projects/domains/soa_domain', '/u02/app/wc11g/middleware/wlserver_10.3/common/nodemanager');
    Enrolling this machine with the domain directory at /u02/app/soa11g/middleware/user_projects/domains/soa_domain ...
    Traceback (innermost last):
    File "<console>", line 1, in ?
    File "<iostream>", line 1447, in nmEnroll
    File "<iostream>", line 1848, in raiseWLSTException
    WLSTException: Error occured while performing nmEnroll : Problem enrolling the machine. : /u02/app/soa11g/middleware/user_projects/domains/soa_domain/config/nodemanager/nm_password.properties (Permission denied)
    Use dumpStack() to view the full stacktrace
    wls:/soa_domain/serverConfig> exit();

    you might be victim of the "node manager starts WL Server with same Unix user id that was used to start Node Manager itself" problem
    see here http://forums.oracle.com/forums/thread.jspa?threadID=2184607&tstart=89
    I have been looking everywhere for a simple way to tell Node Manager to use a different Unix UID,
    anybody any clue?
    here http://download.oracle.com/docs/cd/E12840_01/wls/docs103/nodemgr/overview.html the Node Manager doc page

  • Can I have the "web proxy" checked for certain networks?

    I frequently connect to a wireless network that requires a web proxy connection (I'm not sure I used that term in the sentence correctly). Is there a way to have only specific networks use the web proxy? Its a tiny bit of a pain to check and un-check this option (not the end of the world mind you) but it would be nice for this process to be automated.
    Thanks,
    Nick

    Hi,
    I would recommend you use the "Location" feature under "System Preferences"->"Network". You can save any settings, like proxy, etc for a location and right before you connect to your proxied WiFi connection, you may select the particular saved location from the "Apple Menu" on your top-left, and switch back to Automatic, once you're done with it!
    Regards,
    Anup

  • How can I write a simple proxy server that intercept 80(www)socket???

    Does any body knows how can i write simple proxy server that intercept web sites watching by user???thx

    Does any body knows how can i write simple proxy
    server that intercept web sites watching by user???thxTo be clear a proxy means that requests go to the proxy and then the proxy relays the request to proper place.
    If you want to see traffic without being in the middle (the requests go direct) then you can not use the standard Java API. And do so in any situation of course requires that you be in the physical connection in the first place (ie in a star network with a router in the middle a client machine will not see packets from other machines.)

  • How can I set up an account in two different iTunes stores (France and UK)?

    I would like to be able to buy apps on the french iTunes as well as on the UK I-tunes, but havent been able to. Is there a way?

    First you must accept the fact you will have two Apple IDs (you can't use the same Apple ID in different countries). Second, you must have a valid credit card from both countries to purchase from both countries. This most likely means you have to have billing addresses and bank accounts from both countries.
    If you have what is mentioned above and don't care about toggle between the two Apple IDs all the time then all you have to do is go to www.appleid.apple.com and register two Apple IDs using different country addresses.

  • How can i create datasource on apache server for ADF application?

    Hi All,
    i my use case i have created simple adf application using ADF BC and want to deploy on Apache server 6.x.
    So my question is that  how can i create Data Source i have goggling and find  two different way to do this.
    1. write following line of code on apache server conf/Context.xml file.
    <Resource name="jdbc/TestDB" auth="Container"
                  type="javax.sql.DataSource"
                   driverClassName="oracle.jdbc.OracleDriver"
                  url="jdbc:oracle:thin:@localhost:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"/>
    but when i have used this way i got following exception.
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection
    check link-
    https://forums.oracle.com/thread/2564233
    2. write following line of code apache conf/Server.xml file
    <GlobalNamingResources>
        <!-- Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
        -->
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
                  description="User database that can be updated and saved"
                  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                  pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/TestDB" auth="Container"
                  type="oracle.jdbc.pool.OracleDataSource"
                  description="User database that can be updated and saved"
                  driverClassName="oracle.jdbc.driver.OracleDriver"
                  factory="oracle.jdbc.pool.OracleDataSourceFactory"
                  url="jdbc:oracle:thin:@//172.31.43.207:1521:dst"
                  username="jagrandb" password="jagrantest" maxActive="20" maxIdle="10"
                  maxWait="-1"   />
      </GlobalNamingResources>
    and add this line in context.xml file inside <context> tag
    <ResourceLink global="jdbc/TestDB" name="jdbc/TestDB" type="oracle.jdbc.pool.OracleDataSource"/>
    but when i have run application i have got following error
    log-
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: invalid arguments in call"
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:298)
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:181)
      at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_jsp.java:110)
      at org.apache.jsp.test_jsp._jspService(test_jsp.java:63)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    Aug 2, 2013 5:17:21 PM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "java.sql.SQLException: invalid arguments in call"
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:298)
      at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:181)
      at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(test_jsp.java:110)
      at org.apache.jsp.test_jsp._jspService(test_jsp.java:63)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:857)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:565)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1509)
      at java.lang.Thread.run(Thread.java:662)
    so what is the solution how to create datasource on apche server which suitable for adf application?
    when i test data source using  following code used 1. way as i mentioned above  its running fine bt not for second.
    <%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <sql:query var="rs" dataSource="jdbc/TestDB">
    select empname from pay_emphdr where empcd='JK1306'
    </sql:query>
    <html>
      <head>
        <title>DB Test</title>
      </head>
      <body>
      <h2>Results</h2>
    <c:forEach var="row" items="${rs.rows}">
        Foo ${row.empname}<br/>
    </c:forEach>
      </body>
    </html>
    please help me. it is very urgent.
    thanks in Advance
    Manish

    Hi Lindalnci
    i have already tried  this tutorial and in my post i have defined first way to do using this procedure.
    in that case i have got following exception as i have mentioned above
    org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper cannot be cast to oracle.jdbc.OracleConnection

  • How can I restrict maintaining the same customer for different CC Areas?

    Hi All,
    I have a problem about maintaining customer credit limits via tcode FD32.
    User can maintain a customer in different credit control areas (CCA) and these CCAs are belong to different company codes.
    How can i restrict the user not to update another countries' credit limit?
    Your fast reply will be highly appreciated.
    Regards,
    Bilal

    Hi,
    I donu2019t think so there is any configuration for this kind of purpose.
    You can only do by the authorisation.
    Just give the user authorisation that only this person can change the value of the credit control area.
    And I think so that will be usefull also because if every body has authority then any body can change the limit which is not good.
    First they have to take permission from the authorised person and if he approved then only he should change limits.
    So just try out the user authorisation for your purpose.
    Regards
    Raj.

  • How can I set up a database program for inputing baseball team statistics that is compatible with numbers?

    I have been asked to be a statistician bar and athletic team. We are playing Dartball, a game of darts that is based on baseball.  The previous status station used Apple works which included a database manager that was compatible with numbers. I have checked with the Apple geniuses online for my MacBook Pro and they did not have an answer to my problem. Is there a program that can be used on my MacBook Pro that will keep up with statistics for eight baseball team?

    Im all for the dumb questions, because its probably a dumb mistake I did.
    I have checked that both sus ped and exp. ped are fully plugged in.
    Neither pedals show up in the Midi meter in the transport.
    I dont know how to set a patch for the keyboard, but if both pedals work in other programs (i.e. Reason), wouldn't it not be an issue with a Logic configuration and not in the keyboard's setting? (Unless I have a separate Logic setting that loads automatically when it detects Logic is booted. I dont know how that would work though.)
    Thank you for your prompt help, though. Any other ideas?

  • How can I set the default save format for photoshop edited photos?

    I just spotted that some of my photos that I've edited in Photoshop from Lightroom are a whopping 450MB. Looking deeper I found that they are saved as uncompressed TIFF files, this despite the default save format for Photoshop in Lightroom's preferences being set to ZIP compressed TIFF files. So why doesn't this setting work and how can I make Photoshop save things compressed?

    Sounds funny but first tell us what version of PS you have, what version of Lr and which OS. Thanks.

Maybe you are looking for