Questions tagged [webserver]

A web server is a program that responds to network requests over the HTTP or HTTPS protocol.

A web server is a program that responds to network requests over the or protocol.

Use this tag for questions about web servers in general. For questions about a specific web server application, use the application-specific tag instead: (Apache 1.x or 2.x), (OpenBSD's fork of Apache), , , …

Do not use this tag merely because the computer in the question happens to be a web server, only if serving web content is directly relevant to the question.

586 questions
214
votes
22 answers

Simple command line HTTP server

I have a script which generates a daily report which I want to serve to the so called general public. The problem is I don't want to add to my headaches maintance of a HTTP server (e.g. Apache) with all the configurations and security…
Cid
  • 2,355
  • 2
  • 14
  • 6
125
votes
2 answers

How can I start the python SimpleHTTPServer on port 80?

I am using this command on Ubuntu but it is starting on port 8080 and I don't have another server running so I'd like it to start on port 80. I saw ways that you could set up a bash script to do something like this, but isn't there a command line…
cwd
  • 44,479
  • 71
  • 146
  • 167
35
votes
8 answers

Apache SSL: server cert does not include ID which matches server name

I'm trying to set up SSL on my apache2 webserver, but it seems that it does not work at all. I have followed a tutorial to create cert files with openssl and configured the /etc/apache2/sites-available/default-ssl.conf properly. Every time I try to…
pixelmusik
  • 611
  • 1
  • 6
  • 9
33
votes
4 answers

Unix system(“unzip archive.zip”) Extracting Zip Files Silently

How do I silently extract files, without displaying status?
Adedoyin Akande
  • 471
  • 1
  • 5
  • 10
33
votes
2 answers

How to find out if httpd is running or not via command line?

I'm working on a small control panel for my server. I need a command that will say if httpd is running or stopped. Will probably be using the same code for other services as well.
user70804
  • 375
  • 1
  • 3
  • 5
28
votes
2 answers

Installing Debian without GUI for a web server

I'm unfamiliar with Debian (obviously), so I downloaded the live ISO thinking it might help me. From the live GUI, I doubled click on the install icon on the desktop and proceeded - it gave me an install with GNOME and a bunch of other software that…
jreed121
19
votes
1 answer

What is the difference between AmbientCapabilities and CapabilityBoundingSet?

I am trying to create a systemd service for a web server process that has to bind to port 80 and 443. I found some examples setting AmbientCapabilities=CAP_NET_BIND_SERVICE and setting both AmbientCapabilities and CapabilityBoundingSet. From the…
19
votes
1 answer

What are the correct permissions for a systemd .service?

I need to create a service for a web server called daphne I would like to know what are the correct linux permissions for this. or if exists a general rule for whatever systemd service?
Darwin
  • 293
  • 1
  • 2
  • 7
19
votes
3 answers

tomcat 8 will not start after initial install

I am trying to install tomcat on a new CentOS 7 virtual machine. I successfully installed apache httpd, and am able to get the apache test page when I type the ip of the virtual machine into a web browser on another computer in the network. But I…
CodeMed
  • 5,079
  • 45
  • 100
  • 147
18
votes
2 answers

Why is lighttpd saying "unknown config-key: accesslog.filename"?

I have created a simply vhost on Lighttpd web server and put these lines on the .conf file. server.errorlog = "/var/log/lighttpd/error.log" accesslog.filename = "/var/log/lighttpd/access.log" I have read error.log and I…
user6841
17
votes
4 answers

What can I use to monitor and log incoming/outgoing traffic to/from remote hosts?

I run a web server (Debian Squeeze on a VPS), and the graphs provided by the hosting company show consistently that around twice as much traffic is incoming to the server compared to the outgoing traffic. I am a little confused by this, so I would…
Ian Renton
  • 335
  • 1
  • 3
  • 7
16
votes
2 answers

Real-World Use of TCP_DEFER_ACCEPT?

I was perusing the Apache httpd manual online and came across a directive for enabling this. Found a description in the man page for tcp: TCP_DEFER_ACCEPT (since Linux 2.4) Allow a listener to be awakened only when data arrives on the …
Bratchley
  • 16,684
  • 13
  • 64
  • 103
16
votes
1 answer

netcat in shell script giving invalid connection

I have a shell script that uses netcat to listen to localhost on port 1111 for web requests. Every time I try accessing localhost:1111/index.html for example I get: invalid connection to [127.0.0.1] from localhost [127.0.0.1] 60038 the number at…
MinaHany
  • 735
  • 2
  • 6
  • 10
13
votes
4 answers

Apache fails to reload... Is there a log that I can look in for details?

I have a webserver that I'm working on adding a site to. After running a2ensite, I ran service apache2 reload, and got this: [FAIL] Reloading web server config: apache2 failed! Is there a log file that I can look in for more details?
Questionmark
  • 3,885
  • 8
  • 37
  • 57
12
votes
3 answers

Set up nginx to serve files from subdirectories

I am setting up a very simple file server system. I install nginx and set its root directory to /home to make it serve files from users' home directories. However, when I attempt to download files via http://12.34.56.78/user1/testfile.bin with my…
Nickolai Leschov
  • 1,101
  • 5
  • 13
  • 26
1
2 3
39 40