#LoadModule authn_dbd_module libexec/apache2/mod_authn_dbd.so #LoadModule authn_anon_module libexec/apache2/mod_authn_anon.so #LoadModule authn_dbm_module libexec/apache2/mod_authn_dbm.so LoadModule authn_file_module libexec/apache2/mod_authn_file.so # LoadModule foo_module modules/mod_foo.so # Statically compiled modules (those listed by `httpd -l') do not need # directives contained in it are actually available _before_ they are used. # have to place corresponding `LoadModule' lines at this location so the # To be able to use the functionality of a module which was built as a DSO you # prevent Apache from glomming onto all bound IP addresses. # Change this to Listen on specific IP addresses as shown below to # Listen: Allows you to bind Apache to specific IP addresses and/or # mutex file directory is not on a local disk or is not appropriate for some
# Uncomment and change the directory if mutexes are file-based and the default # for individual mutexes, or change the global defaults # Mutex: Allows you to set the mutex mechanism and mutex file directory # same ServerRoot for multiple httpd daemons, you will need to change at # Mutex directive, if file-based mutexes are used. # ServerRoot at a non-local disk, be sure to specify a local disk on the # Do not add a slash at the end of the directory path. # configuration, error, and log files are kept. # ServerRoot: The top of the directory tree under which the server's # will be interpreted as '/logs/access_log'. # server as "/usr/local/apache2/logs/access_log", whereas "/logs/access_log" # with ServerRoot set to "/usr/local/apache2" will be interpreted by the # with "/", the value of ServerRoot is prepended - so "logs/access_log" # of the server's control files begin with "/" (or "drive:/" for Win32), the # Configuration and logfile names: If the filenames you specify for many # Do NOT simply read the instructions in here without understanding # for a discussion of each configuration directive. # configuration directives that give the server its instructions. # This is the main Apache HTTP server configuration file. If there's something wrong with it I will be grateful if anyone can post their nf file so I can recover it and do it again. Here's my nf file in case anyone needs to look at it. "The requested URL /~kevin/ was not found on this server." Localhost is working but localhost/~kevin/ gives me an I create a folder "Sites" under /user/kevin and change file permission to 777 and uncomment the php5module line in /etc/apache2/nf just like before.
Mac os x web server 404 yosemite mac os x#
So I just recently upgrade to Mac OS X Yosemite and I need to set up my Apache again. UPDATE: The following answer will also work for El Capitan.įor people who just start, the file mentioned below is under /etc/apache2įor the answer below, the file that also need to be changed is /etc/apache2/extra/nf