Questions tagged [webserver]

A software application that services requests from clients using the Hypertext Transfer Protocol.

8218 questions
32
votes
3 answers

Really logging the POST request body (instead of "-") with nginx

I'm trying to log POST body, and add $request_body to the log_format in http clause, but the access_log command just prints "-" as the body after I send POST request using: curl -d name=xxxx myip/my_location My log_format (in http clause): …
Shawn
  • 1,441
  • 4
  • 22
  • 36
32
votes
1 answer

Using node.js to listen on 2 different ports

I'm currently using Sockets.io to communicate with clients, sending JSON and whatnot, from a port. That's all working good, but what i'd like to do is listen simultaneously on another port to create a type of administration page for testing…
Josh Jones
  • 498
  • 1
  • 4
  • 8
31
votes
2 answers

How to Copy/Clone a Virtual Environment from Server to Local Machine

I have an existing Python django Project running in Web Server. Now the client needs to make some changes in the existing code. So I need to set it up in my Local Machine. All the packages needed for this project is installed in a Virtual…
Jubin Thomas
  • 1,003
  • 2
  • 12
  • 24
31
votes
6 answers

How to disable directory indexing from apache2 when going to the server's root?

I need to disable that indexing when I enter on my root directory on a apache2 server, any tips?
Lucas Famelli
  • 1,565
  • 2
  • 15
  • 23
31
votes
6 answers

Apache - How to deny directory but allow one file in that directory

I try to configure my Apache .conf file to deny listing from a certain category, but I want to allow a specific file inside this category. It appears that the Directory rule is "stronger" than the Files rule, so when using both - I can't access that…
Maor Barazany
  • 761
  • 2
  • 11
  • 21
31
votes
2 answers

Apache multiple DocumentRoot

How can I have the following setup in apache? http://server/ABC/* should be served by /var/www/ABC/* http://server/PQR/* should be served by /var/www/PQR/* Every other request should be served by /var/www/Others/index.php (a single…
JP19
31
votes
7 answers

HTTP: Generating ETag Header

How do I generate an ETag HTTP header for a resource file?
tags2k
  • 82,117
  • 31
  • 79
  • 106
31
votes
3 answers

How to get the execution time of a MySQL query from PHP?

I execute MySQL queries from PHP and would like to know how time consuming they are. Is there any way to get the execution time of a MySQL query from PHP? I also wonder if the execution time depends on how loaded is the web server. I can imagine…
Roman
  • 124,451
  • 167
  • 349
  • 456
31
votes
5 answers

How to restrict access by IP address with Tomcat?

Does anyone know if Tomcat can restrict access to certain application by IP address (like Apache's .htaccess)?
SMSM
  • 1,509
  • 3
  • 19
  • 34
30
votes
4 answers

Can the web deploy agent run on a port other than 80 on IIS6?

I've got a bit of a challenge with a Windows 2003 machine where I need to run the web deploy agent on a port which isn't 80. By default, MsDepSvc will expose an endpoint at http://[server]/MsDeployAgentService which obviously implicitly listens on…
Troy Hunt
  • 20,345
  • 13
  • 96
  • 151
30
votes
3 answers

Embedded vs Non-Embedded Java Server

I'm working on a Java project and have been using a Tomcat server for local testing. However I am about to push up to Heroku and I found an article that suggests to use "embedded" Tomcat. I looked around to see what exactly "embedded" meant in the…
Jackson
  • 9,188
  • 6
  • 52
  • 77
30
votes
1 answer

How can I use Nodejs with Windows 7?

I'm about to became insane looking for it, most of the examples shows only how to run it on linux terminal and just the communication with the server. Can someone PLEASE explain to me how I can use NodeJs (make it run and load whatever is needed) in…
Demetrio
  • 399
  • 1
  • 3
  • 5
29
votes
4 answers

MVC3 Deployment Dependency Problems

I've just tried deploying an MVC3 application to our IIS7 hosting environment but I'm being presented wtih the following exception: Could not load type 'Microsoft.Web.Infrastructure.DynamicModuleHelper.DynamicModuleUtility' from assembly …
Phil.Wheeler
  • 16,748
  • 10
  • 99
  • 155
29
votes
6 answers

What popular webservers have support for HTML5 WebSocket?

I would like to experiment with HTML5 WebSockets, and I am looking for a mature webserver with support for websockets. Is there a list of webservers that support websockets per default? What popular webservers has support for websockets out of the…
Jonas
  • 121,568
  • 97
  • 310
  • 388
29
votes
2 answers

Tomcat vs Vert.x

For the past few days I have been reading Vert.x documents. I know that Vert.x is polyglot, single threaded, non-blocking IO, modular architecture, high scalability. Is there any other major differences between tomcat and Vert.x? Also when we…
Ronald Randon
  • 1,141
  • 3
  • 13
  • 19