Ke Li
Ke Li

Reputation: 157

httpd.conf in mountain lion

I am using Mountain Lion, and I put website under /Users/myname/Sites. After checking the the apache folder, I found two httpd.conf, one of them is:

/private/etc/apache2/httpd.conf

and another is:

/private/etc/apache2/users/myname.conf

What's the relationship between these two? If I wanna add some rewrite directives, can I just put them into myname.conf? Thanks.

Upvotes: 2

Views: 3452

Answers (1)

Simon Germain
Simon Germain

Reputation: 6844

The httpd.conf in /private/etc/apache2/ is the global config for the apache server. The config file in /private/etc/apache2/users/ is related to the user directory. The way Apache is configured on OSX loads a user directory, accessed through /~myname.

Upvotes: 4

Related Questions