![]() Please enter the following 'extra' attributes Organizational Unit Name (eg, section) :Ĭommon Name (e.g. If you enter '.', the field will be left blank. There are quite a few fields but you can leave some blankįor some fields there will be a default value, What you are about to enter is what is called a Distinguished Name or a DN. You are about to be asked to enter information that will be incorporated $ sudo openssl req -new -key server.key -out server.csr ![]() ![]() Verifying - Enter pass phrase for server.key: Generating RSA private key, 1024 bit long modulus $ sudo openssl genrsa -des3 -out server.key 1024 The commands necessary are prefixed as "$ sudo", with comments prefixed with a #. The complete dialog is listed here for reference. This is simply a shortcut for testing purposes (a self-signed certificate is not recommended for production!). The following instructions are to generate a "self-signed" certificate. One should first read the current Apache2 documentation found in the Apache2 manual: Note: Establishing Secure Sockets is a fairly extensive process. You can then view the manual by accessing Apache SSL/TLS Encryption (aks Secure Sockets or https) Sudo cp /opt/local/etc/apache2/extra/ /opt/local/etc/apache2/extra/nf LoadModule negotiation_module lib/apache2/modules/mod_negotiation.so #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 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. |