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
0 answers
15 views

Question about changing macOS Firewall option

I have installed Apache Web Server into one of my Mac. And then, I've been publishing this WebServer to inter-net. I'm also using OS built-in Firewall, and allow httpd to external connection. I ...
xanadu6291's user avatar
0 votes
1 answer
57 views

Apache + PHP - Internal Server Error + (13)Permission denied

Trying to get php working on my localhost. PHP has been code signed correctly and is running: AH06662: Allowing module loading process to continue for module at /opt/homebrew/opt/[email protected]/lib/httpd/...
Mou某's user avatar
  • 841
2 votes
1 answer
349 views

Why can I not ping anything other than localhost:8080/?

I cannot ping any other address on the localhost other then the base directory (i.e, when i run ping localhost:8080/example, it will not work). I have also confirmed that the addresses will work in a ...
inyourface3445's user avatar
0 votes
0 answers
401 views

Apache mod_rewrite not work

I am can enable mod_rewrite in Apache, in logs we can see error: /Users/rustam/Documents/www/laravel/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not ...
Wembley's user avatar
1 vote
0 answers
192 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: ...
crmpicco's user avatar
  • 1,081
1 vote
0 answers
100 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 ...
Tim Apple's user avatar
  • 109
0 votes
1 answer
875 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, "...
Andrew Nelson's user avatar
0 votes
1 answer
1k 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 ...
jbjo's user avatar
  • 350
1 vote
0 answers
381 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 ...
superflippy's user avatar
1 vote
0 answers
722 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:...
ASHafizullah's user avatar
0 votes
1 answer
67 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....
jeremy_rutman's user avatar
1 vote
1 answer
703 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 ...
Paul Godard's user avatar
9 votes
3 answers
3k 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 ...
cwille97's user avatar
1 vote
0 answers
5k 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 ...
crmpicco's user avatar
  • 1,081
1 vote
0 answers
250 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 ...
Mateus Ribeiro's user avatar
1 vote
1 answer
413 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 ...
Søren Sjøstrøm's user avatar
0 votes
0 answers
277 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 ...
berlindave's user avatar
3 votes
1 answer
5k 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 ...
Beknowin' Snr's user avatar
0 votes
0 answers
34 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 ...
Hoi Fei Kwok's user avatar
3 votes
3 answers
6k 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 ...
Mister Nick's user avatar
23 votes
7 answers
37k 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 ...
ohboy21's user avatar
  • 5,934
0 votes
2 answers
940 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....
Stephen Lead's user avatar
0 votes
1 answer
72 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 ...
TJ Luoma's user avatar
  • 20.6k
1 vote
3 answers
69 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 ...
Bob Meador's user avatar
1 vote
1 answer
3k 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 ...
nthnchu's user avatar
  • 121
3 votes
2 answers
7k 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.
Sebastian Semmler's user avatar
1 vote
0 answers
515 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="...
gogogogogo's user avatar
1 vote
1 answer
385 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 ...
Gnarlodious's user avatar
0 votes
0 answers
38 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 ...
Mr.Web's user avatar
  • 113
0 votes
0 answers
43 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 ...
lkoehl's user avatar
  • 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 ...
RocketNuts's user avatar
  • 1,469
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 ...
RocketNuts's user avatar
  • 1,469
0 votes
0 answers
46 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 ...
JeremiahDixon's user avatar
0 votes
1 answer
66 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: [email protected] my password: example I figured out to connect my Windows 10 laptop, but I ...
valfur03's user avatar
0 votes
1 answer
765 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 ...
2br-2b's user avatar
  • 629
2 votes
1 answer
197 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 ...
John Doe's user avatar
  • 125
0 votes
1 answer
1k 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 ...
queen of hearts's user avatar
1 vote
1 answer
737 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 ...
Valerio's user avatar
  • 205
1 vote
1 answer
71 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.
taruka's user avatar
  • 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-...
Dominic Norton's user avatar
2 votes
1 answer
2k 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 ...
M Smith's user avatar
  • 43
1 vote
1 answer
4k 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 ...
user8981199's user avatar
0 votes
1 answer
249 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 ...
Cimlman's user avatar
  • 103
4 votes
1 answer
15k 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 ...
jdog's user avatar
  • 163
1 vote
1 answer
4k 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?
ina's user avatar
  • 841
1 vote
1 answer
508 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 ...
Vitalii Korsakov's user avatar
2 votes
1 answer
971 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 ...
Pam's user avatar
  • 23
3 votes
1 answer
764 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 ...
Melle Mel's user avatar
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 ...
MacDeveloper's user avatar
2 votes
1 answer
60 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/...
Benubird's user avatar
  • 121