apache - How do I find my httpd.conf file? -


*edit: who's using mamp pro on mac running mac os x lion may find helpful know tracked down httpd.conf file in personal library @ application support > appsolute > mamp pro > httpd.conf. reason couldn't find normal search it's hidden directory. access it, open finder, choose go > go folder, type in ~/library after tracking down, may discover it's impossible edit httpd.conf file. ); *

this weird one. i'm using mamp on mac , want modify httpd.conf file defaults url's lower case. navigated applications > mamp > conf > apache > httpd.conf , added line of code:

rewritemap tolower int:tolower 

i modified 1 of .htaccess files accordingly, nothing happened. (yes, restarted servers.)

i reopened httpd.conf file , added code, understand supposed display "verbose" messages in log file:

loglevel trace8 

i opened log file @ application > mamp > logs > apache_error.log. there's code associated web pages visited, they're generic messages - not "verbose" messages.

someone understands apache far better me told me indicates httpd.conf file modified isn't being used server or sites. in other words, there must httpd.conf file out there somewhere.

sure enough, typed httpd.conf apple's finder , found half dozens files name. don't know came from; tried install drupal , aqquia, might of them originated.

anyway, added code (including loglevel trace8) every httpd.conf file, restarted servers, , still don't see changes on websites, , still see generic code in log file.

i'm snowed. looks httpd.conf file in mamp folder out of loop, yet apache log file in same folder being used...or can errors written more 1 apache log file @ same time?

if rename httpd.conf file in mamp folder , restart servers, sites display fine, further suggesting httpd.conf outside flow. yet if rename file sits beside named mime.types, web pages don't display.

anyway, have idea how can figure out what's going on?

if not, can advise me on plan b? if can't find httpd.conf file, i'll have abandon ship , online. i've found path online httpd.conf file. don't know how open online files, assume can copy computer ftp program, open , modify it, publish online.

so here questions: correct in understanding can safely add code rewritemap tolower int:tolower online httpd.conf file without affecting of websites until modify .htaccess file(s)? , if modify online config file, have restart server, on computer?

thanks.

first, use ps command find full path running apache process:

$ ps ax | grep httpd    28   ??  ss     3:01.99 /usr/sbin/httpd -d foreground 

on system, apache /usr/sbin/httpd.

second, run binary -v option show configuration. should include path config file.

$ /usr/sbin/httpd -v ... server compiled with.... ..  -d server_config_file="/private/etc/apache2/httpd.conf" 

on system, running copy of apache reads config /private/etc/apache2/httpd.conf.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -