Disable XServe WEBPERFCACHE on port 16080
Wednesday, October 12th, 2005Mac OS X Server’s “web perfomance caching” got you down? Annoyed by seeing :16080 appear in your URLs? Here’s how to remove it:
NOTE: This entry is mostly here because I had a hard time finding instructions on how to do this at short notice, and also so that I don’t forget how it was done. My instructions are based around my experience with Mac OS X Tiger Server so… you know… UAYOR and YMMV.
Step 1: Disable webperfcache
$ sudo pico /etc/hostconfig- Change line
WEBPERFCACHESERVER=-YES-toWEBPERFCACHESERVER=-NO- - Save the file
Step 2: Update Virtual Hosts
- For each virtual host
.conffile in/etc/httpd/sites/ - Change
<VirtualHost *:16080>to<VirtualHost *:80> - Save each file.
Step 3: Update Apache’s listening ports
$ sudo pico /etc/httpd/sites/virtual_host_global.conf- Change
Listen *:16080toListen *:80 - Save the file
Restarting Apache $ sudo apachectl graceful should be enough to make this change stick.
If in doubt you can restart the whole XServe.
That’s it! No more port 16080 !
DISCLAIMER: WEBPERFCACHE can be helpful depending on your needs. It is my personal opinion that it shouldn’t be on by default due to the unexpected behaviours it can produce. But then Mac OS X Server is an enterprise level system, so systems administrators should be aware of what’s running on their system, expected or not.