server-configuration

how to set node.js as a service on a private server?[can't access the node application]

谁说我不能喝 提交于 2019-12-25 07:36:02
问题 I have a problem when deploying my node.js on a private server. I just can't access it when i type the ip:5000 in the browser. This is what netstat shows: Destination Gateway Genmask Flags MSS Window irtt Iface 126.0.54.248 0.0.0.0 255.255.255.248 U 0 0 0 eth1 0.0.0.0 126.0.54.249 0.0.0.0 UG 0 0 0 eth1 And this is my node.js code: var express = require('express'); var app = express(); var http = require('http'); var port = 5000; var server = http.createServer(app); server.listen(port,

Setting a filename inside the header with htaccess

大憨熊 提交于 2019-12-19 11:59:16
问题 we have an application which downloads the files from the server. After the download them it needs to save it, for that it uses the filename paramter which is comming from the responce header. When i'm using the standart PHP download.php?id=downloadID i can set the headers with no problem. The task now is that on the client server they do not have any php available, i need to set the filename inside of the responce header. here is the htaccess what i have: <FilesMatch "\.(?i:pdf)$"> Header

nginx - response based on the requested header

♀尐吖头ヾ 提交于 2019-12-18 13:38:40
问题 I have nginx 1.0.8 installed. here is my problem: I have 2 files : file1.js and file2.js . the requested path is something like this: www.mysite.com/files_dir/%user%/file.js If the requested header : " X-Header " exists and has the value " OK " then the responded content should be file1.js else file2.js. The files are situated in " html/files_dir " and %user% is a set of directories that represents the usernames registered through my service. How do I configure this in nginx? I'm not

What is the recommended max value for Max Connections Per Child in Apache configuration?

前提是你 提交于 2019-12-07 05:21:42
问题 I am traying to reduce memory usage by Apache on the server. My actual Max Connections Per Child is 10k According to the following recommendation the Max Connections Per Child should be reduced to 1000 http://www.lophost.com/tutorials/how-to-reduce-high-memory-usage-by-apache-httpd-on-a-cpanel-server/ What is the recommended max value for Max Connections Per Child in Apache configuration? 回答1: The only time when this directive affects anything is when your Apache workers are leaking memory.

Session variables not accessible in subdirectory

若如初见. 提交于 2019-12-02 03:39:15
问题 When we moved our project from the beta test server to our live server we experienced the following: Session variables are only accessible if the file accessing them is in the same folder as the file that created them. This was not the case on our beta server. So I've created three very simple test files: test.php <?php session_id("581186accf44d7e80df40d0b5a47fb7d"); session_start(); $_SESSION['myvariable'] = 'Hello World'; ?> <html> <body> <p><a href="page2.php">Same folder test</a></p> <p>

Session variables not accessible in subdirectory

强颜欢笑 提交于 2019-12-02 00:54:59
When we moved our project from the beta test server to our live server we experienced the following: Session variables are only accessible if the file accessing them is in the same folder as the file that created them. This was not the case on our beta server. So I've created three very simple test files: test.php <?php session_id("581186accf44d7e80df40d0b5a47fb7d"); session_start(); $_SESSION['myvariable'] = 'Hello World'; ?> <html> <body> <p><a href="page2.php">Same folder test</a></p> <p><a href="test/page2.php">Subfolder test</a></p> </body> </html> Then we have the following file

Setting a filename inside the header with htaccess

眉间皱痕 提交于 2019-12-01 14:42:11
we have an application which downloads the files from the server. After the download them it needs to save it, for that it uses the filename paramter which is comming from the responce header. When i'm using the standart PHP download.php?id=downloadID i can set the headers with no problem. The task now is that on the client server they do not have any php available, i need to set the filename inside of the responce header. here is the htaccess what i have: <FilesMatch "\.(?i:pdf)$"> Header set Content-Type: application/octet-stream Header set Content-Disposition: "attachment; filename=FILE

PhpMyAdmin error with config file

自闭症网瘾萝莉.ら 提交于 2019-11-30 11:13:28
Errors are: The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here. Server running with Suhosin. Please refer to documentation for possible issues. $cfg['Servers'][$i]['pmadb'] ... OK $cfg['Servers'][$i]['relation'] ... not OK [ Documentation ] General relation features: Disabled $cfg['Servers'][$i]['table_info'] ... not OK [ Documentation ] Display Features: Disabled $cfg['Servers'][$i]['table_coords'] ... not OK [ Documentation ] $cfg['Servers'][$i]['pdf_pages'] ... not OK [ Documentation ] Creation of PDFs:

PhpMyAdmin error with config file

走远了吗. 提交于 2019-11-29 16:50:30
问题 Errors are: The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here. Server running with Suhosin. Please refer to documentation for possible issues. $cfg['Servers'][$i]['pmadb'] ... OK $cfg['Servers'][$i]['relation'] ... not OK [ Documentation ] General relation features: Disabled $cfg['Servers'][$i]['table_info'] ... not OK [ Documentation ] Display Features: Disabled $cfg['Servers'][$i]['table_coords'] ...

Tomcat 6 | What's the significance of antiResourceLocking & antiJARLocking?

自闭症网瘾萝莉.ら 提交于 2019-11-29 13:47:45
I am working on a project where we'll be using Tomcat 6.0.20 for Development and production. I came across some issues related to hot deployment which requires one to set Context.antiResourceLocking to false in server.xml. I had some questions on antiResourceLocking and antiJARLocking. I have gone through the reference at http://tomcat.apache.org/tomcat-6.0-doc/config/context.html . What I can't understand is what exactly do you mean by a JAR getting locked or a resource getting locked. What I have read so far is that the locking problem usually comes when you are undeploying an application