Questions tagged [webserver]

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

8218 questions
65
votes
7 answers

Uploading Laravel Project onto Web Server

I am trying to upload my Laravel project onto my web server, but my past two attempts have been unsuccessful. I believe I am not uploading the files to the right location. This is my web server's structure -> Am I correct to say that I need to…
Sainath Krishnan
  • 2,089
  • 7
  • 28
  • 43
65
votes
6 answers

Multithreaded web server in python

I'm trying to create multithreaded web server in python, but it only responds to one request at a time and I can't figure out why. Can you help me, please? #!/usr/bin/env python2 # -*- coding: utf-8 -*- from SocketServer import ThreadingMixIn from …
user1937459
  • 857
  • 1
  • 9
  • 17
63
votes
13 answers

Access a web server which is running on WSL (Windows Subsystem for Linux) from the local network

After installing Ubuntu as WSL (Windows Subsystem for Linux), I've run (as root): cd ~ python3 -m http.server Output: Serving HTTP on 0.0.0.0 port 8000 ... And I tried to access to this web server from my windows machine, http://0.0.0.0:8000 or…
Roman
  • 922
  • 1
  • 8
  • 12
62
votes
4 answers

Some fundamental but important questions about web development?

I've developed some web-based applications till now using PHP, Python and Java. But some fundamental but very important questions are still beyond my knowledge, so I made this post to get help and clarification from you guys. Say I use some…
Zhu Tao
  • 7,581
  • 9
  • 35
  • 38
61
votes
6 answers

Tomcat is web server or application server?

Is Tomcat a web server or an application server?
Suresh S
  • 727
  • 1
  • 6
  • 3
61
votes
11 answers

apache not accepting incoming connections from outside of localhost

I've booted up a CentOS server on rackspace and executed yum install httpd'd. Then services httpd start. So, just the barebones. I can access its IP address remotely over ssh (22) no problem, so there's no problem with the DNS or anything (I…
Phildo
  • 986
  • 2
  • 20
  • 36
60
votes
5 answers

What is the difference between asynchronous and synchronous HTTP request?

What is the difference between asynchronous and synchronous HTTP request?
Abhimanyu Kumar
  • 631
  • 1
  • 5
  • 4
60
votes
8 answers

Load index.html every time from the server and NOT from cache

I have a webpage index.html hosted on a particular server. I have pointed example.com to example.com/index.html. So when I make changes in index.html and save it, and then try to open example.com, the changes are not reflected. Reason that the…
Pulkit Mittal
  • 5,916
  • 5
  • 21
  • 28
59
votes
3 answers

Difference between web server, application server and database server

I read somewhere that a web application consists of a web server, application server and a database server. What is the difference between these three ? I asked this question because I remember when I hosted a website, all I had was a https login…
OneMoreError
  • 7,518
  • 20
  • 73
  • 112
56
votes
3 answers

How to use next available port in http.ListenAndServe

I wrote a simple web server to listen on port 8080. But I don't want to use a hard coded port number. What I want is that my server listen on any available port. And I want to know that on what port number my web server is listening. My code is…
Raja Hammad Farooq
  • 921
  • 1
  • 9
  • 17
52
votes
10 answers

How to check if memcache or memcached is installed for PHP?

How do I test if memcache or memcached (for PHP) is installed on my Apache webserver? Memcache is a caching daemon designed especially for dynamic web applications to decrease database load by storing objects in memory.
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
51
votes
3 answers

Set up Apache virtualhost on Windows

How can I set up virtualhost for multiple domain name on Windows? I will use it for my own test projects. I have three projects that I need to set up and at the moment I'm using xampplite for the portable Apache. www.foo-bar.com --> direct to…
nightingale2k1
  • 10,095
  • 15
  • 70
  • 96
50
votes
4 answers

What is the best web server for Ruby on Rails application?

What is the best web server for ruby on rails application? Why?
ecleel
  • 11,748
  • 15
  • 48
  • 48
49
votes
4 answers

"Ad-hoc webserver" for static files on UNIX/MacOSX?

Is there such a thing as a tiny little webserver that I can invoke from the command line that just fetches files from the local filesystem and serves them via HTTP on specific port? I'd like to be able to do something like this: $ cd…
philippbosch
  • 761
  • 5
  • 9
49
votes
2 answers

What are the limitations of the flask built-in web server

I'm a newbie in web server administration. I've read multiple times that flask built-in web server is not designed for "production", and must be used only for tests and debug... But what if my app touchs only a thousand users who occasionnaly send…
edelans
  • 8,479
  • 4
  • 36
  • 45