If you open httpd.conf with TextEdit, you won’t be able to save the file. Httpd.conf is protected from editing by OSX, so that people don’t inadvertently damage or delete their web server config, or open up security holes. See Easily Edit Httpd.conf on Mac for how to bypass this security.