149
votes
Accepted
Do servers hold one website only?
Basically: the browser includes the domain name in the HTTP request, so the webserver knows which domain was requested and can respond accordingly.
HTTP requests
Here's how your typical HTTP request ...
96
votes
Accepted
What makes a PC able to be a web server and what makes it unable?
Pretty much any computer can be used as a [web] server, provided it can connect to a network, and can run web server software. As a web server can be quite simple, and there are free and open source ...
91
votes
Do servers hold one website only?
I have this explanation for non-tech people.
Jack, Jill and Joe live at a dormitory, and they don't have cellphones.
In the phonebook, they are all listed with the same number. (A-record)
You dial ...
43
votes
How do I stop httpd running under Mac OS X (10.11) El Capitan Server?
You can stop that with command:
sudo apachectl stop
39
votes
Accepted
Can a single server be associated with multiple domains?
Can a single server be associated with multiple domains?
Yes. This would be done by pointing those domains at your web server via DNS.
If I own the "x.x.x.x" web server, can I make two separate ...
26
votes
Accepted
How do I stop httpd running under Mac OS X (10.11) El Capitan Server?
The apple proxy service is the service that grabs ports 80 and 443, so you need to stop that one.
sudo launchctl unload -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/...
26
votes
What makes a PC able to be a web server and what makes it unable?
It's not tricky at all. It merely depends on your definition of "web server".
It's entirely possible to run a "web server" on devices as simple as a microcontroller.
Let is consider what the bare ...
23
votes
Accepted
How to choose open port number?
A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535 (although 0 cannot be used for TCP; it has a special meaning for UDP).
You can use pretty much any port number in the range, ...
17
votes
Accepted
UFW Deny not really working
Answering my own question after finding the answer: I found the problem was with ordering. Deny rules should go first, I had to show the rules numbered with:
sudo ufw status numbered
Then deleting ...
14
votes
How to send an HTTP request for a certain domain name to a specific IP address?
You can use CURL to initiate a request to the server with a custom host header.
curl --header "Host:abc.com" xxxx.xxxx.xxxx.xxxx
14
votes
Accepted
Can a Telnet server detect the client being used through the protocol?
There is no User-Agent, but there exist a few Telnet protocol options for sending client information:
TERMINAL TYPE – shows the used terminal type (e.g. xterm, urxvt, screen-256color...) You can't ...
11
votes
How do I stop httpd running under Mac OS X (10.11) El Capitan Server?
This command should kill them all:
sudo killall httpd
They will start again on next boot.
10
votes
How to have multiple servers on one IP address
I assume this is a small office/home setup.
There is no way to assign the same IP to multiple devices. Therefore, you'll either have to host everything on the same device or use a mechanism that ...
9
votes
What makes a PC able to be a web server and what makes it unable?
Programming/Software perspective:
A program that is able to listen to Port 80 on Network adapter. That runs on the OS you have. And can process the requests according to HTTP definitions.
A program ...
8
votes
How to manually install Apache, PHP and MySQL on Windows?
PHP 7
The instructions in the above answer work perfectly as of July 2017, however, if you wish to use PHP 7, you must add the following lines to C:\Apache24\conf\httpd.conf, instead of the ones in ...
8
votes
Accepted
Connect SSH to server on port 2222 via the terminal
The -p option in nc command is for source port and you need to specify destination port.
Try $ nc ip-address 2222 to check if you can reach the port.
Also I don't think than ssh command accept the ...
7
votes
How do I stop httpd running under Mac OS X (10.11) El Capitan Server?
In case others are reaching this question by searching for httpd or port 80 but don't have the Server.app running, this is the solution for macOS Monterey 12.x and later:
sudo launchctl bootout system/...
6
votes
Accepted
Is there a way to download parts of the content of a zip file?
I wrote a Python script list_remote_zip.py that can list files in a zip file that is accessible over HTTP:
import urllib2, struct, sys
def open_remote_zip(url, offset=0):
return urllib2.urlopen(...
6
votes
Accepted
Point dynamic IP address to domain automatically
The dynamic IP aspect of your question can be addressed easily, as there are many providers that offer Dynamic DNS as a service. For example:
DynDNS
No-IP
...as well as many others
I've tried both ...
6
votes
Accepted
550 Operation not permitted when deleting file through FTP - But I have permissions
To delete a file, you need to have write permissions to the parent directory, not to the file itself.
6
votes
Does HTTPS/SSL make sense on a local network?
Depends on your threat model. If you think there might be bad guys on your network, then you absolutely need to encrypt traffic.
When two machines are on the same subnet (i.e. there's no router ...
6
votes
Do servers hold one website only?
As from what I understand the DNS link the domain name with the IP address of the server the website is stored on, does that mean each server can only hold one website?
First, you need to understand ...
6
votes
Accepted
Apparently random encoded URL requests
Those are not actually URLs at all, as the requests are not shaped like an HTTP request to begin with (a real HTTP URL request would start with a verb like GET or TRACE, and this would be shown in ...
5
votes
Is it possible to host a web server from behind a NAT
You can set up an I2P tunnel.
If you only need TCP, you can set up a Tor hidden service.
If you only need to host static web pages, you can set up a ZeroNet site.
They all require no port ...
5
votes
How can I get web server information about a page I'm viewing (e.g. Apache or IIS, Windows or UNIX)?
curl -I yoursite.com is another simple way to at least see what kind of server it is as well as some other basic header information.
5
votes
Can multiple users share 1 email address with different login credentials?
Gmail has a feature called Email Delegation, which allows you to grant access to your account to other gmail addresses. They won't be able to change any major settings like change your password or ...
5
votes
Accepted
How does image hotlink protection work?
When your browser requests an image for a web page, it sends with the request a header called Referer. The browser populates that header with the URL of the original page that the image is embedded ...
5
votes
How to run a HTML file from Notepad++?
Instead of using Chrome directly, you could use a .bat file.
Below is one version of such a .bat file that should be executed in Notepadd++
like this :
"path\to\file.bat" "$(FULL_CURRENT_PATH)"
For ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
webserver × 1254networking × 243
apache-http-server × 191
linux × 171
router × 95
nginx × 85
ubuntu × 79
dns × 79
port-forwarding × 78
http × 58
php × 46
ip × 43
website × 43
windows × 39
ssh × 39
security × 39
browser × 33
windows-7 × 31
macos × 31
proxy × 31
iis × 31
ftp × 30
centos × 27
raspberry-pi × 26
localhost × 26