-2

Is Apache or IIS or a similar service actually required to make web content available to the internet? For example, say I had web content at /var/www/index.html. If a user fired up a browser and navigated to http://www.myaddress.com/var/www/html.index could their browser resolve that web content? Or does http actually require the server to be running a web service that can respond to http?

closed as off-topic by joeqwerty, masegaloeh, mdpc, womble, MadHatter Aug 3 '15 at 0:32

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions should demonstrate reasonable business information technology management practices. Questions that relate to unsupported hardware or software platforms or unmaintained environments may not be suitable for Server Fault - see the help center." – mdpc, womble, MadHatter
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Yes it is required one very basic reason is there would be nothing listening on the port for your browser to connect to. Opening a port and getting a response are very different – Drifter104 Aug 2 '15 at 22:16
  • 3
    Do yourself a favor and find a new instructor and/or a new school. Your instructor doesn't sound qualified to be teaching this class. – joeqwerty Aug 2 '15 at 22:19
  • @joeqwerty He is not. Wish I could. – Digital Impermanence Aug 2 '15 at 22:22
  • You could use an old PC or something like that to set up a test machine and try it if you like, but others have answered your question. (Don't put it on the Internet. Only try this on your local network. If you put it on the Internet, you might get a practical demonstration of how quickly They [TM] find you.) – Katherine Villyard Aug 2 '15 at 23:02
  • Is the JRE required to run a Java application? – Michael Hampton Aug 3 '15 at 0:52
1

If there is no (web)server installed or running, no service is listening. If there ist no server listening, the client can't connect and will run into a "Connection refused" error.

A very nice explanation how the communication of a client and a server works, can be found here: http://www.thegeekstuff.com/2011/11/tcp-ip-fundamentals/

  • So running rhel 7 w/o httpd will NOT work? It absolutely requires httpd or something similar to be running? – Digital Impermanence Aug 2 '15 at 22:19
  • I suppose you could run an ftp server instead. But if you're going to the trouble of setting up an ftp server you might aswell setup an http server instead – BeowulfNode42 Aug 2 '15 at 22:22
  • @BeowulfNode42 So running a server OS is not enough. There actually needs to be a dedicated web server service running on that server OS like Apache, IIS, etc.? – Digital Impermanence Aug 2 '15 at 22:23
  • you could setup a simple http server on your computer at home, and forward port 80 from your modem to that computer. This would make the html content available to the public internet. It may help if you install some sort of dynamic dns client on the computer at home. – BeowulfNode42 Aug 2 '15 at 22:24
  • If you want a (web-)service, you need a (web-)server. tl;dr Yes, you need httpd or somethign similar. – redimp Aug 2 '15 at 22:24

Not the answer you're looking for? Browse other questions tagged or ask your own question.