A software application that services requests from clients using the Hypertext Transfer Protocol.
Questions tagged [webserver]
8218 questions
47
votes
10 answers
Avoid public folder of laravel and open directly the root in web server
I was going through all possible sample on internet to solve this. Still it is an headache.
I just want to avoid the 'public' in www.mylaravelsite.com/public/
and make it like www.mylaravelsite.com for the root directory.
Now I do not want to avoid…

Sagiruddin Mondal
- 5,407
- 2
- 29
- 44
46
votes
3 answers
File size differences after copying a file to a server vía FTP
I have created a PHP-script to update a web server that is live inside a local directory.
I'm migrating the script into Python. It works fine for the most part, but after a PUT command, the size of the file appears to change. Thus, the size of the…

PabloG
- 25,761
- 10
- 46
- 59
46
votes
4 answers
Serving gzipped content for Go
I'm starting to write server-side applications in Go. I'd like to use the Accept-Encoding request header to determine whether to compress the response entity using GZIP. I had hoped to find a way to do this directly using the http.Serve or…

Rick-777
- 9,714
- 5
- 34
- 50
44
votes
1 answer
How do I run a Python script on my web server?
I've just started learning Python, and I'm pretty lost right now. I want to run my script on my server that is hosted through hosting24.com. Their FAQ says they support Python, but I have no clue where to put my script for it to run.
There is a…

HellaMad
- 5,294
- 6
- 31
- 53
44
votes
5 answers
high performance application webserver in C/C++
Is there any high performance (ideally evented and open source) web server in C or C++?
I'd like to be able to use it in that it calls a method/function in my application with a filled out HTTP Request class/struct, and then I can return a filled…

Aaron Yodaiken
- 19,163
- 32
- 103
- 184
44
votes
4 answers
VMWare fusion: connecting to host's web server from guest
I am a web developer and my development platform is Mac. I have installed a copy of Windows XP in VMWare fusion for testing purposes and using IE for previwing my websites. I have Apache running on my Mac with several subdomains, like test.localhost…

farzan
- 1,160
- 2
- 14
- 25
44
votes
9 answers
What is .htaccess file?
I am a beginner to Zend framework and I want to know more about the .htaccess file and its uses. Can somebody help me?
I found an example like this:
.htacess file
AuthName "Member's Area Name"
AuthUserFile /path/to/password/file/.htpasswd …

웃웃웃웃웃
- 11,829
- 15
- 59
- 91
43
votes
3 answers
django- nginx: [emerg] open() "/etc/nginx/proxy_params" failed (2: No such file or directory) in /etc/nginx/sites-enabled/myproject:11
I try to deploy a django project with Nginx and Gunicorn with this tutorial. i did all to-dos but, when i create /etc/nginx/sites-available/myproject file with below code:
server {
listen 80;
server_name server_domain_or_IP;
location = /favicon.ico…

msln
- 1,318
- 2
- 19
- 38
43
votes
6 answers
Do you know any reason to use Apache instead of Nginx?
Do you know any reason to use Apache instead of Nginx? I'm talking about a "new project" with no any legacy code or configuration.
updated:
Most popular reasons to use Apache are:
we have our rewrite config
we have our application, working on…

Sergei O. Udalov
- 614
- 1
- 5
- 9
43
votes
4 answers
Why use Tornado and Flask together?
As far as I can tell Tornado is a server and a framework in one. It seems to me that using Flask and Tornado together is like adding another abstraction layer (more overhead). Why do people use Flask and Tornado together, what are the advantages?

3k-
- 2,467
- 2
- 23
- 24
42
votes
1 answer
Mathematica 8.0 interaction with a web server JSP using HTTP POST and XML
I have been tasked with using Mathematica to interact with a third party's web server via JSP using HTTP POST and XML. Example of what I need to send:
42
votes
7 answers
Should all sites use SSL by default?
We are in the process of moving our web architecture to a new environment. Included are dozens of different sites ranging from almost completely static to dynamic sites requiring authentication and containing sensitive content. Our web server admins…

Jason
- 17,276
- 23
- 73
- 114
41
votes
4 answers
Setting a trace id in nginx load balancer
I'm using nginx as a load balancer in front of several upstream app servers and I want to set a trace id to use to correlate requests with the app server logs. What's the best way to do that in Nginx, is there a good 3rd party module for…

danny
- 10,103
- 10
- 50
- 57
40
votes
4 answers
Does Tomcat require Apache httpd?
If I am given a war file that contains a Java web application, and I want to run that war locally, then do I just need Tomcat, or do I need Tomcat and Apache httpd (or any other web server)? Thanks in advance!

IAmYourFaja
- 55,468
- 181
- 466
- 756
40
votes
3 answers
Serve homepage and static content from root
In Golang, how do I serve static content out of the root directory while still having a root directory handler for serving the homepage.
Use the following simple web server as an example:
package main
import (
"fmt"
"net/http"
)
func…

Owen Allen
- 11,348
- 9
- 51
- 63