2022 Developer Survey is open! Take survey.

Questions tagged [webserver]

A Web server is a program that uses HTTP (Hypertext Transfer Protocol) to serve the files that form Web pages to users, in response to their requests, which are forwarded by their computers' HTTP clients.

Filter by
Sorted by
Tagged with
0 votes
1 answer
17 views

access webpages hosted by (macOS) apache web server on LAN where pages are served from a user home directory on the server machine

I would like to run a personal website that is accessible across users on the local area network. Specifically, imagine we have Mac #1 talking to Mac #2 via a router and the goal is to access a ...
user avatar
  • 330
1 vote
0 answers
23 views

Chrome and Safari find localhost in two different locations

I've been trying to set up MAMP (macOS, Apache, MySQL, PHP) using Homebrew on macOS Monterey. I set the file directory for Apache as /Users/myname/Sites in httpd.conf. When I go to http://localhost in ...
user avatar
0 votes
0 answers
71 views

Httpd & PHP error after upgrading to Monterey version 12.3.1

I recently upgrade my Mac to Monterey v12.3.1, and when I check the httpd and php, with brew services list, its return status Error. I try to tail -f /usr/local/var/log/httpd/error_log, its return log:...
user avatar
0 votes
1 answer
8 views

How can I specify a directory from which to run .cgi scripts using apache2 on macos12

I'd like to run .cgi scripts on macos12 running an apache webserver, which uses the Sites folder as webroot by default apparently, so I'd like to put my cgi there. I supposed I should be editing httpd....
user avatar
1 vote
1 answer
100 views

LaraDock virtual host not working on macOS Monterey Apache2

I have read many posts on the subject but none refers to exactly the same environment I have (macOS Monterey). So what I have done so far... I have successfully installed the latest versions of ...
user avatar
9 votes
3 answers
2k views

How are Apple devices maintaining persistent connections with Apple servers for things such as APN, FindMy network, etc

Apple devices such as iPhones and Macs are able to receive near real-time notifications from the APN system, as well as frequently checking in with the FindMy network, and more. I am wondering how ...
user avatar
1 vote
0 answers
668 views

httpd showing in error state with brew services list on MacOS Monterey

When I look at my services installed with Homebrew Apache is always in an error state. When I do a syntax check on my Apache config it is fine and Apache is serving up content fine. It's only a minor ...
user avatar
  • 971
0 votes
0 answers
13 views

How to launch Chrome on an iPad from a connected Ubuntu machine?

I have an Ubuntu computer that has a web server running (ex localhost:8080). Assuming the iPad is logged in and connected, I would like to remotely launch Google Chrome with the desired address/port. ...
user avatar
  • 101
1 vote
0 answers
116 views

Is it possible to run a Mac/Linux/Windows command-line app on a web server?

Not sure if this is achievable, but here is the deal: I have a Vendor ID from our company and that information is used to retrieve an Apple Identification number, after some assets are uploaded to ...
user avatar
0 votes
1 answer
96 views

http://localhost/~username - 403 forbidden error

I'm in the process of setting up my local ~/Sites folder, but if I access the page http://localhost/~soren I get a 403 error: Forbidden You don't have permission to access this resource. I have read ...
user avatar
0 votes
0 answers
135 views

SSH remote connection closes immediately after login

When I try to connect via ssh to a certain web server I get immediately after successful login the message Connection to xx.xx.xx.xx closed. I wanted to post what I get in verbose mode, but ...
user avatar
0 votes
0 answers
62 views

Virtual hosts incorrectly mapping with Homebrew Apache

So, I'm trying to get a home dev server going using Homebrew's Apache mostly following this guide. I'm playing with three dev projects, a WordPress site, a Drupal site, and some vanilla JS tests. I ...
user avatar
  • 158
1 vote
1 answer
2k views

Localhost has stopped working on Chrome and Safari since upgrading to Big Sur - how do I get this to work again?

I use localhost to develop Wordpress websites locally but since upgrading to BigSur, I cannot get localhost to show my local websites. My set up is MacBook Pro with Big Sur v11.4. I use MAMP software ...
user avatar
0 votes
0 answers
15 views

safari can't connect to localhost even configtest return no syntax error on Apache file

I have an iMac with High Sierra 10.13. It is an old machine so it cannot get further OS upgrade. I tried to reach localhost but it failed to connect with either Chrome or Safari. I tried looking into ...
user avatar
2 votes
3 answers
1k views

Is it possible to use my public IP address to serve a website? (Catalina)

I'm a bit new to the topic of servers, ip addresses (public and private), ports, networking, and how all of this stuff ties together. Playing around, I managed to run apache on my mac and get an html ...
user avatar
21 votes
6 answers
20k views

Can I use a MacBook as a server with the lid closed?

I have an old MacBook laying around, and I wonder if it's possible to use it safely when the lid is closed? I want to run it as a network device, store files in my home network on it etc. Is there a ...
user avatar
  • 5,744
0 votes
1 answer
196 views

Apache on localhost doesn't recognize a website unless I include the full path to index.html

Using MacOS 11.1 Big Sur, I'm developing static websites (ie just a standalone index.html, plus JavaScript and CSS files) on my localhost, with the files accessible under /Library/Web Server/Documents....
user avatar
0 votes
1 answer
51 views

How to run/manage websites on macOS versions *after* High Sierra?

High Sierra (10.13) is deprecated now that Big Sur (macOS 10.16/11) is out. High Sierra was the last version of macOS which supported websites (technically Apache, I believe) being managed through the ...
user avatar
  • 19.3k
1 vote
2 answers
47 views

Upgrading High Sierra to Catalina on 2016 MBP using local webserver

In the past colleagues (and I) believed it was often a bad idea to install newer OSs on older Macs. I get the feeling that has changed, and that putting Catalina on my 2016 MacBook Pro shouldn't be a ...
user avatar
0 votes
1 answer
484 views

Change Apache2's Port Number

I recently enabled apache on my mac for local development. I would now like to use nginx as a reverse proxy, which I have done before, but I want to move apache to port 8080 so I can put nginx on port ...
user avatar
  • 111
1 vote
2 answers
2k views

RTSP feed with ffmpeg and the Mac camera

I have two Macs in my network. On the first one I want to capture the FaceTime camera via ffmpeg and make a RTSP feed available on the network, which I can watch on the second Mac.
user avatar
0 votes
0 answers
84 views

Cannot access a web server of macos from my android smartphone on same network

On macos, I did the following. $ mkdir foo $ cd foo $ vi index.html $ cat <<EOF > index.html > <!DOCTYPE html> > <html> > <head> > <meta charset="...
user avatar
1 vote
1 answer
151 views

Broadcast http on mDNS Bonjour in Catalina?

As of Catalina I've quit Apache and switched to Tornado. Apache was easy to configure http Zeroconf broadcast port 80 on the LAN. What I am looking for is an Avahi type solution where I can configure ...
user avatar
0 votes
0 answers
31 views

MacOS connecting to a non-internet server on local network

I have 2 Mac (Mac Book and Mac Book Air), one running Catalina 10.15.5 (19F101) and the other one Mojave 10.14 I have a server NOT connected to the Internet, with Tomcat setup and it's all hooked to a ...
user avatar
  • 113
0 votes
0 answers
24 views

What tools can i use to test the speed of communication between a server -> webserver -> client

in our company, we have to evaluate and compare the Mac Pro (2019) and the Mac mini (2018) in their usage as a client management server. We already know that the Mac Pro will be the better ...
user avatar
  • 13
1 vote
1 answer
1k views

Installed Apache 2.4 (httpd) using Home Brew, can I get it to use macOS' php7?

I'm running macOS 10.15 (Catalina) and have installed the latest Apache (2.4.43) using brew, basically following these steps. Seems to be working fine, but now I want to enable PHP 7 in Apache as ...
user avatar
  • 1,309
2 votes
1 answer
1k views

Installed Apache (httpd) using Home Brew, but cannot seem to get mod_rewrite working?

I'm running macOS 10.15 (Catalina) and have installed the latest Apache (2.4.43) using brew, basically following these steps. It seems to be working OK, I can visit http://localhost/ and when I ...
user avatar
  • 1,309
0 votes
0 answers
42 views

Is my Apache server creating multiple localhosts?

I'm trying to set up Apache server for MacOS Mojave 10.14 and I'm running into some bizarre issues. Whenever I type localhost into Chrome I get a 403 Forbidden error. When I type in localhost:8080 ...
user avatar
0 votes
1 answer
43 views

Can’t connect my iPad to cPanel WebDisk (iOS)

I am trying to connect my iPad to my webdisk, but I can’t. I have: my address: example.com my username: exemple@exemple.com my password: example I figured out to connect my Windows 10 laptop, but I ...
user avatar
0 votes
1 answer
231 views

How to access local webpage from another host in the same network?

I'm trying to access RSS feeds hosted on my Mac from another computer in the same network. The IP-address of the Mac is 192.168.228.84, the port the server uses is 8080. I can access the page ...
user avatar
  • 553
2 votes
1 answer
180 views

How to monitor multiple macOS system usage?

For GNU/Linux systems that runs as a server, we can get a dashboard with system information like cpu, memory, network usage etc. What software is used to collect this information? For macOS, is there ...
user avatar
  • 123
0 votes
1 answer
774 views

configtest error AH00526: Syntax error in httpd-autoindex.conf

I've been using the tutorials here as well as here in order to host a web page using Apache on macOS Catalina Version 10.15.1. The problem was that I couldn't access the localhost and kept getting a ...
user avatar
1 vote
1 answer
379 views

Remote access forbidden but localhost works with Apache

I followed this tutorial and the Apache server works locally. http://localhost/~user/ works but remotely http://my-ip/~user I get: Forbidden. You don't have permission to access this resource. Note ...
user avatar
  • 175
1 vote
1 answer
39 views

How can I sync Mac Calendar with my own server?

How can I sync Mac Calendar with my own server? Not one of Google, not one of Apple, iCloud. But my own.
user avatar
  • 13
0 votes
1 answer
893 views

How do I fix macOS Mojave httpd syntax error in a localhost setup?

System details: OS Host: Mac OS Mojave PHP: 7.1.23 I am trying to set up my local server on a new Mac. I have been following the following instructions on https://discussions.apple.com/docs/DOC-...
user avatar
2 votes
1 answer
634 views

CGI scripts won't execute on website

I have a website up and running on the Apache webserver, but the CGI scripts in /Library/WebServer/CGI-Executables will not run. Instead, the text of the file loads in the browser instead. I made ...
user avatar
  • 43
1 vote
1 answer
3k views

Error: "sudo: command not found" when trying to use XAMPP [closed]

I am trying to use XAMPP to create a server on my MacBook. I'm following the tutorial here: https://www.webucator.com/how-to/how-install-start-test-xampp-on-mac-osx.cfm and I'm stuck on the bit ...
user avatar
0 votes
1 answer
236 views

HTTP Watchdog iOS Application

Is there some application for iOS that alerts me if a HTTP server is down? I am looking for a simple app that sends an HTTP GET request to a URL of my choice several times a day. It can e.g. show a ...
user avatar
  • 103
3 votes
1 answer
10k views

remove homebrew apache2 fails

On a new Macbook Pro, I installed apache2 with homebrew, but now want to switch back to native apache2 server. I removed the homebrew package with: brew uninstall apache2 I also removed any ...
user avatar
  • 153
0 votes
1 answer
3k views

Setting up a web server with a domain name on an iPhone

Is it possible to set up a proper web server with a domain name on an iPhone or on iOS?
user avatar
  • 641
1 vote
1 answer
207 views

How to access Mac OS web server from mobile by local name?

I want to debug mobile version of my website on my iphone/android. But cannot open it on mobile. I've read some related questions and all they suggest is to add localname to /etc/hosts but I already ...
user avatar
2 votes
1 answer
554 views

Permissions on apache2 directory

I was working through these instructions to get my web server working again and needed to change the /etc/apache2/httpd.conf file. I needed to change the permission on httpd.conf file and did. Next I ...
user avatar
  • 23
3 votes
1 answer
586 views

MAMP still can't access Apache after creating local virtual hosts

I had finally got my PHP and MySQL to work again and then I decided to set up local virtual host. Everything was working perfectly up to that point. I have been getting error messages when I do ...
user avatar
3 votes
1 answer
1k views

Can we setup a local HTTPS Server in Mac OS X using swift

I want to setup a local HTTP Server running in my Mac OSX machine which should be able to handle requests that are coming from web browser. But I am not sure whether we can setup HTTPS server using ...
user avatar
2 votes
1 answer
31 views

Why did apache move config, and how do I move it back?

I just installed PHP 7, and suddenly localhost is no longer accessible. Investigating, apachectl determined that it changed from reading /etc/apache2/httpd.conf, to now be reading /usr/local/etc/...
user avatar
  • 121
1 vote
0 answers
77 views

Can /etc/apache2 directory on Sierra work on High-Sierra?

My question is related to the following: "Apache not working with user Sites folder on macOS 10.13 High Sierra" I installed High-Sierra over Sierra, and all my localhost/~username/pages were ...
user avatar
  • 151
6 votes
1 answer
731 views

High Sierra: Can't connect to a xampp server running on another machine after upgrading macOS

I have a Xampp web server running on another computer in the local network and my Mac can no longer access it after updating to High Sierra. All other devices I have in the same Wi-Fi network connect ...
user avatar
  • 163
1 vote
1 answer
527 views

How to block downloads from app store?

I want to block the iPhone users connected to my home network from downloading apps from the apple app store.I used a similar method to block the auto apple updates but I don't know the server ...
user avatar
3 votes
1 answer
55 views

Website hosted on Mac taking too long to load on the first access

I'm using an old Macbook Pro (2011) to host a few websites. Everything works fine, but after a long time without hitting the server the websites take a really long time to load (even in my local ...
user avatar
1 vote
1 answer
7k views

How to prevent Safari from stopping downloads when sleeping?

I am using macOS Server to host files on a website. I often need to download large files to the server to host them myself. Because I do not usually have physical access to the server, I use the ...
user avatar
  • 9,324