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
1 vote
0 answers
25 views

How to disable the default Apache installation

I am trying to disable the default Apache installation on my M1 MBP, however I am hitting problems. Checking Apache configuration suggests the default is still configured. apachectl -S AH00558: httpd: ...
  • 1,051
1 vote
0 answers
12 views

macOS Server Service Proxy reverse proxy request for specific host

Reverse Proxy for Home Assistant with macOS Server 5.3.1 Created a website within Server App for EXTERNALHOSTNAME.TLD Selected SSL Certificate for EXTERNALHOSTNAME.TLD Enabled web app in Advanced ...
0 votes
1 answer
273 views

Strictly using "localhost" instead of "localhost:8888" Mac MAMP possible?

I just switched from windows to Mac. I used MAMP for my web development, and with it I could go to "localhost" and it would connect to the server. Now after installing MAMP on a Mac, "...
0 votes
1 answer
610 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 ...
  • 340
1 vote
0 answers
218 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 ...
1 vote
0 answers
522 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:...
0 votes
1 answer
31 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....
1 vote
1 answer
580 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 ...
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 ...
1 vote
0 answers
2k 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 ...
  • 1,051
1 vote
0 answers
201 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 ...
1 vote
1 answer
213 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 ...
0 votes
0 answers
185 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 ...
1 vote
1 answer
3k 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 ...
0 votes
0 answers
25 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 ...
3 votes
3 answers
3k 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 ...
22 votes
7 answers
27k 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 ...
  • 5,844
0 votes
2 answers
606 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....
0 votes
1 answer
58 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 ...
  • 19.9k
1 vote
2 answers
57 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 ...
0 votes
1 answer
1k 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 ...
  • 111
1 vote
2 answers
4k 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.
0 votes
0 answers
179 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="...
1 vote
1 answer
209 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 ...
0 votes
0 answers
34 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 ...
  • 113
0 votes
0 answers
30 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 ...
  • 13
1 vote
1 answer
2k 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 ...
  • 1,389
2 votes
1 answer
2k 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 ...
  • 1,389
0 votes
0 answers
43 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 ...
0 votes
1 answer
48 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 ...
0 votes
1 answer
536 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 ...
  • 599
2 votes
1 answer
190 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 ...
  • 123
0 votes
1 answer
913 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 ...
1 vote
1 answer
530 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 ...
  • 205
1 vote
1 answer
47 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.
  • 13
0 votes
1 answer
1k 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-...
2 votes
1 answer
1k 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 ...
  • 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 ...
0 votes
1 answer
244 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 ...
  • 103
4 votes
1 answer
12k 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 ...
  • 163
1 vote
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?
  • 761
1 vote
1 answer
378 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 ...
2 votes
1 answer
764 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 ...
  • 23
3 votes
1 answer
714 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 ...
3 votes
1 answer
2k 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 ...
2 votes
1 answer
50 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/...
  • 121
1 vote
0 answers
79 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 ...
  • 151
6 votes
1 answer
769 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 ...
  • 163
2 votes
1 answer
644 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 ...
3 votes
1 answer
66 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 ...
  • 201