12/12/2023 0 Comments Apache needs port 80 mamp#LoadModule negotiation_module lib/apache2/modules/mod_negotiation.so If you would like to be able to access a copy of this manual on your web server, edit /opt/local/etc/apache2/nf and uncomment the following lines: The Apache manual is available on the Apache web site. This avoids the requirement to use sudo commands for changing things in Apache's RootDocument. Edit /opt/local/etc/apache2/nf and change in the two lines below DocumentRoot /opt/local/www/apache2/html to /Users/username/Sites. Now it's time to change Apache's DocumentRoot to your ~ /Sites directory. You can then view your personal pages by accessing where "username" is your Mac OS X account's short name. ( "/Users/*/Sites") and contains initial, basic restrictions for access to the contents of that directory.Īfter each change to the config file, you should again verify the file syntax, and then you need to stop and restart Apache for the changes to take effect. This file: "/opt/local/etc/apache2/extra/nf" will activate the "Sites" sub-directory for all ~users on your system. Uncomment it by removing the " #" at the start of the line so that it reads: If you would like to be able to access web pages in the Sites directory of your home directory, edit /opt/local/etc/apache2/nf and locate the following line: LoadModule userdir_module lib/apache2/modules/mod_userdir.so Uncomment it if necessary by removing the " #" at the start of the line so that it reads: #LoadModule userdir_module lib/apache2/modules/mod_userdir.so Edit /opt/local/etc/apache2/nf, locate the following line Sudo cp /opt/local/etc/apache2/extra/ /opt/local/etc/apache2/extra/nf The "Fix" is to simply use the FQDN of your server when testing Apache or related Web services.įirst, install the nf file: The simple answer is "localhost" is an "old-tyme" shortcut which should still work, but often does not for many different reasons. Safari can't open the page "localhost" because Safari can't connect to the server "localhost". Using the links above to "localhost" will fail with Safari complaining " Failed to open page. NOTE: The setting of "ServerName" to anything other than the Fully Qualified Domain Name (FQDN) of the server under Apache 2.2.x and Yosemite, does not produce the expected results. If desired, reboot your machine and point your browser again to to confirm that Apache is again running. You should see a page that says "It works!" To verify Apache is now running, point your browser to (you may need to reload the page). For personal use, localhost is sufficient. To resolve the warning, edit the configuration file and set the server name appropriately. Where refers to the name of your computer as specified in the System Preferences Sharing pane. Apache SSL/TLS Encryption (aks Secure Sockets or https). Step 5: Initial changes to the config file.Step 1: Turn off Apple's "Personal Web Sharing".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |