JavaScript (not to be confused with Java) is a dynamic, weakly-typed language used for client-side as well as server-side scripting. Use this tag for questions regarding ECMAScript and its various dialects/implementations (excluding ActionScript and Google-Apps-Script). Unless another tag for a ...

learn more… | top users | synonyms

-1
votes
0answers
99 views

Cannot connect to ServerEndpoint deployed in Tomcat [migrated]

A lot of people assume that I use an IDE, so let me state this right now: I do not use any IDE. I took the following Java source code, compiled it to Echo.class, then created Echo.war by writing ...
1
vote
2answers
56 views

Google Analytics code being added to every site on server

I have an Ubuntu server hosting several websites, some Wordpress some just plain HTML, but every single page has the exact same Google Analytics script on it when I view the source in a web browser. ...
0
votes
1answer
23 views

parse-server upload size limit , more than 100MB?

I am trying to upload a file to my parse server(using javascript sdk), but I need to make sure i can upload up to 500MB (for example). Is it possoible to be done in parse-server ? Can it be edited in ...
1
vote
0answers
7 views

Is there a non-invasive test of uPnP enabled network?

I'm trying to figure out if there is a way to do a non-invasive test on different networks to see if Universal Plug'n'Play (nPnP) is enabled at the router. i.e. Is Internet Gateway Device Profile ...
0
votes
0answers
12 views

Send pageview in Piwik

Sorry for this very basic question but I can't figure it out. On my website I'm moving from Google Analytics to Piwik. I got Piwik working however, I can't trigger a pageview. The main problem is ...
1
vote
1answer
19 views

JavaScript interpreters on older Debian installations (sarge)

I am goign to write a few scripts for managing tasks via command line on the servers. I will use the NodeJS Debian package in servers that support it, but I have a few servers still in Debian 3.1 (...
0
votes
1answer
2k views

NGINX - Cannot set Cache-control for redirected .js files (with alias + rewrite)

I have successfully setup an nginx server which uses both alias + rewrite as in the below configuration. Everything works except that javascript files are not enforced browser caching. Server url: ...
0
votes
0answers
19 views

Apache 2.2 authentication without default window pop up

I have a static website and I wish to make use Apache 2.2 authentication. I want the user to be redirected to my custom login page(Instead of the default windows pop up that appears) if they try to ...
0
votes
0answers
13 views

iis 7.5 doesn't compress javascript

I can't get httpCompression to gzip my .js's This is my web.config <urlCompression doStaticCompression="true" doDynamicCompression="true"/> <serverRuntime enabled="true" ...
0
votes
0answers
64 views

Meteor JS issues on failover (Delay in reconnection)

Our meteor deployment contains two meteor nodes, behind a network load balancer (Google cloud NLB which simply passes on requests to a target pool of 2 Ubuntu 14.04 meteor instances). Each node has a ...
1
vote
1answer
26 views

multiple redirects on lighhttpd

I have a request to redirect multiple individual URLs to new individual URLs. This is the situation: **Old URL --> New URL** old.domain.org/ --> ...
1
vote
0answers
45 views

Sub domain Redirect is incorrect when my Javascript does window.location = “subdomain” [closed]

I wanted to make my website redirect to my mobile site with the sub domain of m.mydomain.com, but when I do, I get redirected to parked-domains.org. When I access my sub domain directly in a new tab, ...
0
votes
1answer
98 views

How to filter JS:ScriptIP-INF (TRJ) in BBClone Webstatistic

I`m using the webstatistic bbclone on my server. In the last month my virus scanner sometimes blocks the details page. it displays the detection of JS:ScriptIP-INF (TRJ) on my bblone. But I ...
1
vote
1answer
87 views

IIS: requesting PNG returns 401

I am attempting to create a web application, and I am testing it on my desktop using IIS. My problem comes whenever I attempt to request a PNG image. The server responds with a 401 specifically for ...
1
vote
0answers
21 views

Web encryption on uncontrolled LAN

I have a situation in which I wish to produce (physical hardware) widgets that plug into a LAN and act as a web server, serving content to web clients that are also on the LAN. The traffic from the ...
3
votes
0answers
125 views

Query string parameters get shuffled

We're observing some strange behavior of the data send to our systems from a javascript since 9/9/2015. The problem shows up when the query string is send to our servers. Some values of the ...
0
votes
0answers
66 views

dns SRV lookup with sip.js

I am trying to use sip.js to make video calls using WebRTC. Our video engineer told me that we need to perform a dns srv lookup before connecting. Here is what I have: var uri = new SIP.URI('sip','...
-1
votes
3answers
139 views

Centos server provides javascript for localhost but not local lan [closed]

I have a centos 6 server running an asterisk, freepbx, and apache 2.2.25. On this server, the apache server serves up a webpage called fop2. I've talked to the developer, and he says the files are all ...
0
votes
0answers
147 views

safe way to parse and display email content in webpage

i have a small website i made which pulls in an email from a directory on the server and displays it. Now it displays all the images, text and html. And javascript. Does anyone know what i should and ...
0
votes
0answers
191 views

Squid GET request returns incorrect content type when using transparent mode

I'm trying to establish the cause of a strange issue with mobile device that goes through a Squid 3.3 proxy on CentOS 7 using transparent mode which is not able to access news content within the Bing ...
2
votes
0answers
287 views

GZip compression not working on Tomcat7

I recently tried using gzip compression to improve web UI performance. I configured Tomcat Connector as below. compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" ...
0
votes
1answer
239 views

<script> always pending on IE11 and CentOS Apache

Using Apache HTTPD 2.2.15 on CentOS 6.6 I have a simple client-side call elsewhere: <script src="//txph.cfwebtools.com/CJT/index.js"></script> while returns this code via this machine: ...
-1
votes
2answers
57 views

My server request needs to be converted from Http to Https

My application performs some HR related functions. When the user hits "apply leave" button, at the back-end it validates against employer credentials. If everything is fine then code is written that ...
0
votes
1answer
590 views

How to execute server-side JavaScript via Alfresco Share?

I want to execute some server-side JavaScript (to manipulate repository nodes). I have admin access via Alfresco Share, but I have no Alfresco Explorer nor SSH access. The best would be a kind of ...
0
votes
1answer
498 views

Can't run server-side Javascript on Classic ASP

I'm trying to run a server side piece of JavaScript code on my ASP site. The whole site is using VBScript, but this piece is written in JavaScript, so I'm using a separate tag, rather than setting ...
2
votes
0answers
222 views

From Http to Https NodeJS Websockets on Apache Server

Here is my problem. I have a virtual machine, on windows, the Apache server (2.4) is installed on it. The vm is on the network, so that other people can reach it directly on http://192.168.100.22 (...
0
votes
1answer
275 views

Why would a portion of a website work outside my LAN, and not inside it?

So we have a website at work that no one inside the work LAN can use. Our customers can use it. I can use it if my phone is on LTE. I can't use it on WiFi, through an ethernet connection at work, or ...
0
votes
1answer
51 views

How can I accept responses from an API with multiple subdomains?

I write website prototypes that use data from a server I do not control, the response is in JSON and the server does not support JSONP, thus I have problems with CORS as I am developing in the client ...
1
vote
2answers
1k views

Mime type received as “text/html”, server configured to send as “text/javascript”

Both firefox and chrome are showing that javascript files from my server are served as MIME type text/html. The javascript files have a .js extension. First, mime_module is installed and active: ...
1
vote
0answers
737 views

tcp connection reset [RST, ACK]

getting this errors looks like server is restating the connection because of some packet loss any possible suggestion's to figure out this 37713 591.925575000 Sourceip==>>...
0
votes
1answer
32 views

Heroku redirect file to serve from CDN

My Heroku backed app is now serving a certain JS file, but due to high rpms I would like to serve it from my CDN. Is it possible to make a redirect from myapp.herokuapp.com/file.js to mycdn.com/...
1
vote
0answers
34 views

Trying to inject javascript to every page [duplicate]

Hie. I'm working on a JS library that makes changes to dom elements and I would like to be able to show people it's effect in my site. I'm trying to setup some sort of proxy similar to a transparent ...
1
vote
0answers
309 views

Can't go to route using nginx and Express.JS

So I have express.js set up behind nginx and when I go to website.com/users, I get a 404. But when I go to website.com, the page loads fine. This appears to be all other routes too, I can't get to ...
0
votes
1answer
474 views

Apache Tomcat + Apache2 + mod_proxy: Issues regarding cluster

I have a Tomcat 7.0.57 cluster setup behind an Apache2 using mod_proxy. Setup: Apache2: 192.168.2.139 Tomcat Node1: ajp://192.168.2.166:8010 (http connector also defined on port 8082) Tomcat Node2: ...
2
votes
0answers
517 views

nginx proxy with CAS

I have a JS application that issues REST calls from the client browser to a data source that sits behind nginx. We need to implement CAS authentication for the application to manage access. However ...
0
votes
1answer
127 views

Nginx redirection to url writen in requested file

I need to setup dynamic redirections. For example, a user open a link : http://www.example.com/2/3/4/ and see the page on the following address: http://www.example2.pl/something. I know about ...
2
votes
2answers
623 views

After loading a certain number of javascript/css files, the files are taking too long to load

I have a problem where on page load (after a certain number of .js or .css files) the files are taking way too long to load. At first I thought that the issue must be inside the .js files, but later I ...
0
votes
0answers
259 views

HTML5 media loading sometimes suspends or aborts: misconfigured Apache?

Recently, some code that has been working fine for months started to run unexpectedly. That code is just a media files loading JavaScript function, that uses jQuery. It's pretty long, but in essence ...
0
votes
1answer
129 views

Overriding a JS file from server from proxy

I have an Apache reverse-proxy server set up between a client machine and a server. What I want to achieve is to override a javascript file sent from the server with the one from the proxy before ...
0
votes
0answers
212 views

How to approach SSL encryption with file uploads

I added SSL to a site I'm putting together, and it caused a huge error that I have no idea how to approach. The user logs into the site, which allows them to upload files to the server into a ...
0
votes
1answer
231 views

Apache [negotiation:error] while opening javascript file

I have javascript file with name circle.terminals.cmd.var.js and apache return 500 error with: [Sun Jun 15 15:00:55.194900 2014] [negotiation:error] [pid 20095] [client 127.0.0.1:50879] AH00681: ...
1
vote
0answers
223 views

How to start pm2 without autosave logs

I start my nodejs app with pm2, all works, but it save expensive logs. I don't know how to start without save logs, i want to save only error logs. Thanks!
0
votes
1answer
748 views

Wildcard Domain with Google Analytics

Each user on our website has their own subdomain (e.g. bob.example.com, elephant.example.com) and they get paid for the traffic that they send to this subdomain. How can I wire up Google Analytics so ...
-1
votes
1answer
98 views

Apache returning stale content of differing sizes when file changes

I'm seeing some strange cacheing behavior with (I suspect) Apache. Whenever I change this JavaScript file, what I get in the browser is simply an old version of the file truncated or expanded to match ...
-3
votes
1answer
125 views

Replace of cron job/cron tabs— Windows Scheduler [closed]

I want to know that there is any way to create an script on windows machine in PHP that should run after an interval, let's say every after 15 minutes. Currently I'm doing it using javaScript, but ...
0
votes
0answers
644 views

Internaly hosted alternative to cloudbased nobackend solution like Firebase

In an environment where I can't use a cloud based service like Firebase, I'm looking for recommendation for an internally hosted nobackend solution. I could use node or meteor but really am just ...
1
vote
1answer
3k views

New Relic JavaScript

I have a problem, I was logged in at New Relic, but didn't install anything. After that, my Chrome suddenly adds a weird JavaScript snippet to my localhost only, on AMPPS. How to get rid of this, as ...
0
votes
1answer
796 views

deploying meteor on my own domain (ubuntu)

I want to deploy my meteor app on my Ubuntu server, I used meteor.sh and everything went successfully, But i simply can't launch my app from the browser I'm putting my ip address and getting a 404 ...
0
votes
2answers
3k views

Javascript 404 not found, but PHP and CSS loading

I've got a Ubuntu 10.04.4 LTS cloud server running the default LAMP stack. My website is serving my PHP pages, the images and CSS to go with them, and most of my JS is loading, but there is a ...
0
votes
1answer
96 views

Rogue iframe injection in my javascript

I ran my website through Sucuri http://sitecheck.sucuri.net/results/www.fort-aspenwood.com They came up with these rogue iframes in my minified javascript <style>.vpqfm { position:absolute; ...